RE: [PHP] flushing contents to the browser
| From: | Johnson, Kirk | Date: | Wed, 12 Dec 2001 23:14:06 +0000 |
| Subject: | RE: [PHP] flushing contents to the browser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77512@lists.php.net to get a copy of this message | ||
> I tried this... it just continually refreshes ... and doesn't
> ever re-direct
> to my page.. am i missing something?
If the URL is correct, it should work.
The *first* page should have this code. The variable $query_page contains
the URL to the *next* page, which contains the database query code:
echo("<HTML><HEAD><META HTTP-EQUIV=\"refresh\"
CONTENT=\"0;url=$query_page\"></HEAD><BODY>processing...please
wait</BODY></HTML>");
> > > -----Original Message-----
> > > From: DigitalKoala [mailto:annazaraah@yahoo.com]
> > > Sent: Wednesday, December 12, 2001 2:17 PM
> > > To: php-general@lists.php.net
> > > Subject: [PHP] flushing contents to the browser
> > >
> > >
> > > hi folks,
> > >
> > > i'm trying to display something like "processing... please
> > > wait" on a web
> > > page whilst a rather hefty database query is being run.
> > >
> > > i don't want to refresh the page so i've been attempting to
> > > use flush and
> > > ob_start, together with some css stuff to try and do this..
> > > but no luck so
> > > far - as once the buffer has been flushed, i can't retrieve
> > > the content..