I'm trying to display realtime php process output using this code below, but it doesn't work, it doesn't show the process in realtime, it only displays the final output at once
echo "Start...";
for ($i = 0; $i<20; $i++){
echo $i;
ob_flush();
flush();
sleep(1);
}
echo "Done!";
ob_end_flush();
exit;