note 26315 added to function.flush

From: Date: Sat, 26 Oct 2002 07:32:07 +0000
Subject: note 26315 added to function.flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-38575@lists.php.net to get a copy of this message
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 :) -- http://www.php.net/manual/en/function.flush.php http://master.php.net/manage/user-notes.php?action=edit+26315 http://master.php.net/manage/user-notes.php?action=delete+26315 http://master.php.net/manage/user-notes.php?action=reject+26315

« previous php.notes (#38575) next »