3
I want something printed on the screen during execution, and not only when the script is finished, I tried:
<?php
ob_start();
for($i = 0; $i < 5; $i++){
echo $i . '<br>';
ob_flush();
flush();
sleep(3);
}
but it didn’t work, everything is printed at once at the end of the execution.
Thank you so much! Exactly what I need.
– Murilo Souza