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/>'; Link to comment https://forums.phpfreaks.com/topic/230627-turn-off-output-buffering/ 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? Link to comment https://forums.phpfreaks.com/topic/230627-turn-off-output-buffering/#findComment-1187468 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. Link to comment https://forums.phpfreaks.com/topic/230627-turn-off-output-buffering/#findComment-1187478 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. Link to comment https://forums.phpfreaks.com/topic/230627-turn-off-output-buffering/#findComment-1187483 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.