reading something from stdin

This commit is contained in:
Dan Buch 2010-12-28 23:22:27 -05:00
parent a0dda0bcfb
commit 168d7edcf3

9
docroot/html/io.php Normal file
View File

@ -0,0 +1,9 @@
<?php
$stdin = fopen('php://stdin', 'r');
$mystring = fgets($stdin);
print "\$mystring=$mystring";
?>