reading something from stdin
This commit is contained in:
parent
a0dda0bcfb
commit
168d7edcf3
9
docroot/html/io.php
Normal file
9
docroot/html/io.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$stdin = fopen('php://stdin', 'r');
|
||||
|
||||
$mystring = fgets($stdin);
|
||||
|
||||
print "\$mystring=$mystring";
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user