Jump to content

[SOLVED] Output Buffering problem


Asheeown

Recommended Posts

ob_start();
for($i=0; $i < 10; $i++)
{
    echo $i . ' ';
ob_flush();
flush();
sleep(1);
} 

 

Does not output 0 1 2 3 4 5 6 7 8 9 incrementally it waits till the script is done loading and then displays it.  Anyone know if I'm doing something wrong, I have done this before but I can't figure it out.

Link to comment
https://forums.phpfreaks.com/topic/168703-solved-output-buffering-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.