Re: Command line php
| From: | John Nichel | Date: | Wed, 02 Apr 2003 01:17:54 +0000 |
| Subject: | Re: Command line php | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141906@lists.php.net to get a copy of this message | ||
if I do a...
$name = fread ( STDIN, sizeof ( STDIN ) );
I only get back the first character entered. How do I accept exactly
what is entered?
Leif K-Brooks wrote:STDIN is a file reference. Use the standard file functions (fread, for example) on it. John Nichel wrote:How do I capture standard input? <?php $name = STDIN; echo ( "Hello " . STDIN . "\n" ); ?> ????