Re: run a fuction at each intervals
| From: | Tom Carter | Date: | Wed, 27 Jun 2001 12:10:51 +0000 |
| Subject: | Re: run a fuction at each intervals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55371@lists.php.net to get a copy of this message | ||
this sort of works.. I did a similar thing on a site.. but it *really* is
not what HTTP is designed for + you start to get all kinds of things... main
problem being it won't execute code afterwards to then.. if, for example, it
is displayed in a table then that won't work + some browsers may not display
a page until it is "finished", it the HTTP session is over.. which would
mean this wouldn't work.
> > Did you want these all to appear on the same page? If so then
> > that can't be
> > done.. the nature of HTTP (the method of delivering pages to the
browser)
> > doesn't allow for this sort of thing.. theres nothing PHP can do
> > about that.
> >
> > The only alternative I can suggest is for the page to
> > refresh/redirect every
> > 5 minutes...
>
> Well. what he could do is
>
> <?php
>
> while(sleep(3000))
> {
> echo "Time is up";
> flush();
> }
> ?>
>
As well as time out