|
Using ob_flush to push output to browser |
|
This script cycles through an array and prints something to the browser
for every loop. It sleeps 2 seconds for each loop after pushing the
content to the browser. Very useful in some instances, but may not work
for all browsers.
-
<?php
-
-
-
-
for ($i = 0; $i<10; $i++){
-
echo "<br> Line to show.";
-
-
-
-
-
-
}
-
-
-
-
-
-
?>
|