note 27796 added to function.ob-end-flush

From: Date: Thu, 19 Dec 2002 00:40:00 +0000
Subject: note 27796 added to function.ob-end-flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-41088@lists.php.net to get a copy of this message
I had to use a call to flush() after a ob_end_flush() to make it really work. Here's an example: <?php $separator="---ThisRandomString---"; header ("Content-type: multipart/x-mixed-replace;boundary=$separator"); echo "$separator\n"; for ($var=5; $var>=0; $var--) { ob_start(); echo "Content-type: text/html\n\n"; echo "<h2>Countdown</h2>\n"; echo "$var\n"; echo "$separator\n"; ob_end_flush(); flush(); sleep (10); } ?> -- http://www.php.net/manual/en/function.ob-end-flush.php http://master.php.net/manage/user-notes.php?action=edit+27796 http://master.php.net/manage/user-notes.php?action=delete+27796 http://master.php.net/manage/user-notes.php?action=reject+27796

« previous php.notes (#41088) next »