PHP Classes
elePHPant
Icontem

File: examples/askforinput.php

Recommend this page to a friend!
  Classes of Christian Vigh  >  PHP Asynchronous Command  >  examples/askforinput.php  >  Download  
File: examples/askforinput.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Asynchronous Command
Get commands output without waiting to finish
Author: By
Last change:
Date: 3 years ago
Size: 253 bytes
 

 

Contents

Class file image Download
<?php
   
// This script is a sample command that prompts the user to enter some text, then displays it
    // It is run by the input.php script.
   
echo "Please enter something : " ;
   
$line = trim ( fgets ( STDIN ) ) ;

    echo
"You entered : [$line]\n" ;