Standard Input?
| From: | Michael | Date: | Mon, 24 Jun 2002 21:07:28 +0000 |
| Subject: | Standard Input? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103670@lists.php.net to get a copy of this message | ||
Are there functions in PHP that will allow me to read in a variable via
standard input? I just wanted to do something like this:
echo "What is your name? ";
$name = <STDIN>;
print "Your name is $name.";
I looked but didn't see anything that quite matched up on the PHP website.
Michael