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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.