scarhand Posted February 7, 2009 Share Posted February 7, 2009 the page is not outputting anything while it loads. heres my code: <?php set_time_limit(0); if (ob_get_level() == 0) ob_start(); echo 'working...'; for ($i = 1; $i <= 800000; $i++) { echo "DONE $i<br />"; flush(); ob_flush(); usleep(500000); } ob_end_flush(); ?> why isnt it working? Link to comment https://forums.phpfreaks.com/topic/144154-ob_flush-is-not-working/ Share on other sites More sharing options...
gevans Posted February 7, 2009 Share Posted February 7, 2009 are you just getting a completely blank page. If so lower 800000 to something like 8000, 800000 is actually a lot of work! If in doubt try it without the buffer Link to comment https://forums.phpfreaks.com/topic/144154-ob_flush-is-not-working/#findComment-756499 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.