I want something to print on the screen at runtime, not just 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 did not work, everything is printed at once at the end of the run.