//Hello. I'm using the below example for flush:
<?php
$i = 1;
for($i; $i < 10; $i++){
print"$i
";//($i-para-tag)
flush();
sleep(1);
}
?>
The first time I access page, the flush does not work (it takes 10 seconds to load). But when I reload the page the flush works (the numbers display in 1 second intervals). Why is this? And how can I make flush work the first time I access the page.
Mike