I have the following PHP script:
<?php
ob_end_flush();
ob_start();
for ($i=0; $i < 10; $i++) {
echo "Line ".$i."</br>";
ob_flush();
flush();
sleep(1);
}
ob_end_flush();
?>
It works fine on WAMP localhost and prints new line each second, but online at GoDaddy economy hosting, it doesn't work. It shows the output after 10 seconds of nothing happens but the page loading.
What could be wrong?