The Little Guy Posted August 3, 2009 Share Posted August 3, 2009 This is the only code I have found so far that flushes data... <?php ob_implicit_flush(); str_pad(' ',1024); echo "Hello World <br />"; ob_flush();flush(); $i=0; while ($i <= 3000) { echo $i.str_pad(' ',1024); ob_flush();flush(); usleep(010000); // equals 0.01 seconds $i++; } ?> for some reason though, If I replace this: echo $i.str_pad(' ',1024); with this: echo $i.' '; The flush no longer works. Anyone know how to properly flush data? Quote Link to comment https://forums.phpfreaks.com/topic/168641-solved-flush-data/ Share on other sites More sharing options...
The Little Guy Posted August 3, 2009 Author Share Posted August 3, 2009 Got it! I had to change my buffer size Quote Link to comment https://forums.phpfreaks.com/topic/168641-solved-flush-data/#findComment-889668 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.