Re: flushing output to the browser whilst the script does something useful
| From: | Olivier Hubert | Date: | Thu, 09 May 2002 19:39:36 +0000 |
| Subject: | Re: flushing output to the browser whilst the script does something useful | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13664@lists.php.net to get a copy of this message | ||
You might want to look at the flush() function which seem to do exactly what you need.
http://www.php.net/manual/en/function.flush.php
However please note that your web server might still buffer the output. You would then have to look at the server level to solve your problem.
Hope this helps,
Olivier Hubert
At 20:29 2002-05-09 +0100, Mr. Adam ALLEN. wrote:
Wasn't sure on what the best way of describing it in a few words.. I have a few php scripts which outputs a good page worth of html, then there is a long delay while something useful is done by the script. Currently, html only gets displayed by the browser once the complete script has finished. What I'm looking to do, is flush the HTML out at key points. (i.e. before I start the processing, so users actually know somethings happening -rather thana appearing as if the connection is timing-out). How would this be done in PHP? Regards, Adam -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php