Reading from standard input
<?php $fh = fopen('php://stdin','r') or die($php_errormsg); while($s = fgets($fh)) { print "You typed: $s"; } ?>