If this doesn't work for you, try printing out all your HTML, spawn the "long" proc. into the background and then exit.
Then, on the HTML you outputted, use a META REFRESH or Javascript refresh (or just putting a link at the bottom for the user to click on), so that the user can then see the output of the long process. What is the long proc. doing anyway? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -----Original Message----- > From: Olivier Hubert [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 09, 2002 3:40 PM > To: Mr. Adam ALLEN.; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] flushing output to the browser whilst > the script > does something useful > > > 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 > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php