Rene Fournier wrote:
So my question is, why does fread wait if there is nothing more to
read? Shouldn't it return immediately? (That's what I want.) And as
for the delay, it's there so that if the incoming data is a little
slow, it has time to catch up with fread. Thanks.
...Rene
I do believe:
No, because fread reads to EOF, which is not present. Just because there
is no text being sent over the steam, does not mean EOF is present.
I could be wrong, but that's the general idea if I recall correctly.
- Craige
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php