Here is the output buffering code:
Code: Select all
<?php
// Turn off output buffering
ini_set('output_buffering', 'off');
// Turn off PHP output compression
ini_set('zlib.output_compression', false);
//Flush (send) the output buffer and turn off output buffering
while (@ob_end_flush());
// Implicitly flush the buffer(s)
ini_set('implicit_flush', true);
ob_implicit_flush(true);
ob_start();
for($x=0; $x<25;$x++) {
echo "X=" . $x;
echo str_pad("",1024," ");
echo "<br />";
ob_flush();
flush();
sleep(1);
}
echo "Program Output";
ob_flush();
flush();
?>

Thanks,
Chas