I have to output results while PHP script is running:
ob_implicit_flush(true);
ob_start();
for ($i=0; $i<5; $i++) {
echo $i . ' - ';
ob_end_flush();
flush();
sleep(1);
}
This is working but throwing warnings:
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in ...
How to fix that?