This code flushes the output to the browser every 5 seconds as expected:
but some other scripts that use ob_flush(); flush();, and which used to work properly, now don't flush the output to the browser until the script has finished running.Code:<?php for ($i=0; $i<5; $i++) { echo '<br>'.$i; ob_flush(); flush(); sleep(5); } ?>
Does anyone know of a way to fix this?


Reply With Quote
Bookmarks