note 27796 rejected from function.ob-end-flush by jmcastagnetto

From: Date: Thu, 19 Dec 2002 09:15:56 +0000
Subject: note 27796 rejected from function.ob-end-flush by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41103@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); } ?>

« previous php.notes (#41103) next »