Re: Problem with getting non-blocking data from stdin
| From: | Curt Zirzow | Date: | Sat, 20 Sep 2003 06:02:54 +0000 |
| Subject: | Re: Problem with getting non-blocking data from stdin | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163278@lists.php.net to get a copy of this message | ||
hmm.. on second thought...
* Thus wrote Robert Cummings (robert@interjinn.com):
> [...]
> if( ($char = fread( $stdin, 1 )) !== false )
How are you calling this script? I'm not sure how cgi will handle
fread <stdin>
With a traditional CGI script <stdin> is what is read on POST data
from a form, and php takes care of this.
That is where my confusion is now.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."