I have been experimenting with:
ob_implicit_flush(true);
ob_start();
$timelimit=10;
while ($timelimit>=0){
$timelimit=$timelimit-1;
echo "1";
sleep(1);
flush();
ob_flush();
}
ob_end_flush();
php.ini:
output_buffering = Off
I expect to see "1" added every second until the script completes execution. Instead I see everything only after the script has ended.
What am I doing wrong here?
ob_*()functions?