Welcome to WebmasterWorld Guest from 3.227.249.234

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

ob implicit flush and FF

Does not work in FF

     
8:07 am on Mar 27, 2012 (gmt 0)

New User

5+ Year Member

joined:Dec 7, 2010
posts: 35
votes: 2



<?php
//Enable PHP max execution time
ini_set('max_execution_time',0);

ob_implicit_flush(true);
ob_end_flush();

while($counter <= 10)
{
echo str_repeat(" ", 1024*64); //because of FF buffer
echo $counter.'<br>';

sleep(1);
$counter++;
}

echo 'ALL DONE!';

?>


So, on one server it give me correct output on IE and FF but on the other server it work only in IE!
5:10 pm on Mar 27, 2012 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 0


This shouldn't be an issue with your browser.

What is your OS and PHP version on both the working and non-working servers?
5:18 pm on Mar 27, 2012 (gmt 0)

New User

5+ Year Member

joined:Dec 7, 2010
posts: 35
votes: 2


On working server:
Linux
PHP Version 5.3.8

Non working server:
Linux
PHP Version 5.2.17
6:36 pm on Mar 27, 2012 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 0


There seems to be odd behavior with this.

Check the comments section in the documentation as well as the following bug reports:

[php.net...]

[bugs.php.net...]
[bugs.php.net...]

It could also perhaps be a setting in your php configuration file, so I would also try checking for differences in output buffer settings between the working and non-working servers.