ankhmor Posted March 14, 2011 Share Posted March 14, 2011 Hi. I have a problem with output buffering. I'm using wamp. I've tried setting the php.ini file to output_buffering = 0 and off I've tried using flush() and ob_flush(), separetly and together. I've tried turning on implicit_flush. Nothing works. Any ideas? I'm using the flowing code to test right now: echo 'starting...<br/>'; for($i = 0; $i < 5; $i++) { print "$i<br/>"; flush(); sleep(2); } print 'DONE!<br/>'; Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted March 14, 2011 Share Posted March 14, 2011 Nothing works how? What does it do? You did restart apache after making the php.ini change yes? Quote Link to comment Share on other sites More sharing options...
ankhmor Posted March 14, 2011 Author Share Posted March 14, 2011 Yes i have restarted it. It doesnt work in a way that it loads output only once the whole script is done running. Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted March 14, 2011 Share Posted March 14, 2011 Not sure. I just tried an it works for me. 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.