On Mon, May 21, 2001 at 10:03:33AM -0700, Phil Glatz wrote : 
> I have a page that displays a few lines, then runs a database query that 
> takes five or six seconds. I'd like to flush stdout and display the first 
> text while the query is running, so the user doesn't think the site is 
> down.  What's the best way to accomplish this?  thanks

Make sure output is not buffered via ob_* functions and just call
'flush()'.

But note there's no real world fix because browsers can refuse to
display immdiatly (depending on its rendering engine, etc) and
apache can cache the output, too.

- Markus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to