reading something from stdin
This commit is contained in:
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";
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user