note 26315 deleted from function.flush by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 01:35:31 +0000 |
| Subject: | note 26315 deleted from function.flush by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58456@lists.php.net to get a copy of this message | ||
Note Submitter: dallask@sbcglobal.net
----
NOTE: Browsers (specificly my IE6) tend to reset their internal buffer after the first flush, which
means that if you are calling flush in a loop,
while(somthing)
{
echo $data;
flush();
}
your second flush() wont be executed... and all others wont be executed untill the now reset buffer
is reached.
use this ...
while(somthing)
{
echo $data.str_pad(" ", 300);
flush();
}
To pad the string with enough to clear the buffer :)