I\'ve tried several attempts at getting my flush and ob_flush to work. I\'ve tried setting the ini to allow buffering, I\'ve tried using several different functions I found
I just wanted to write a quick note of what I've observed, now in 2016, of the different approached suggested:
The above codes offered by netcoder and David work for me in the following browsers:
It does not seem to work in Firefox, Safari, or IE 10-11.
I've also tested the alternative code:
Line to show.";
echo str_pad('',4096)."\n";
ob_flush();
flush();
sleep(2);
}
echo "Done.";
ob_end_flush();
?>
Which can be found here: http://php.net/manual/en/function.flush.php#54841
Which seems to have better current support through all browsers:
The working implementations seem to change year to year, so I wanted to offer an update of what I've found myself to work at the moment.