I have a script that takes about 7 minutes to complete. Meanwhile I would like to push status to the browser. I thought flush would be the function to use but it isn“t working for me. I use IE 5.5. Any suggestions?
Thanks
Did you include the full statement? <? flush(); ?>
I used this example;
<? for ($n=0; $n<5; $n++) { print ("Calculating<BR>"); flush (); sleep (3);
} ?>
after 15 seconds the whole pages displays...
Does your PHP perhaps have "output buffering" switched on?
Try this:
http://php.net/manual/en/ref.outcontrol.php
I assume it should be switched on?! I tried both. Is it in my Apache webserver?