note 55609 deleted from function.flush by danbrown

From: Date: Sat, 14 Feb 2009 06:05:37 +0000
Subject: note 55609 deleted from function.flush by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150655@lists.php.net to get a copy of this message
Note Submitter: StanV ---- So will this: <?php for ($i = 0; $i<10; $i++){ echo "<br> Line to show."; echo str_pad('',4096)."\n"; flush(); sleep(2); } echo "Done."; ?> I've not found a case where I need to use ob_flush() if I never started caching the buffer in the first place. There seems to be some confusion you have to start buffering the output to make sure you flush it later with both commands. If you don't need to buffer with ob_*, only flush() is enough in my experience.

« previous php.notes (#150655) next »