Forum Moderators: coopster

Message Too Old, No Replies

ob implicit flush and FF

Does not work in FF

         

Prasawet

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

10+ Year Member




<?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!

eelixduppy

5:10 pm on Mar 27, 2012 (gmt 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?

Prasawet

5:18 pm on Mar 27, 2012 (gmt 0)

10+ Year Member



On working server:
Linux
PHP Version 5.3.8

Non working server:
Linux
PHP Version 5.2.17

eelixduppy

6:36 pm on Mar 27, 2012 (gmt 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.