Re: Meta refresh best answer ??

From: Date: Tue, 09 Nov 2004 08:44:21 +0000
Subject: Re: Meta refresh best answer ??
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-201596@lists.php.net to get a copy of this message
Hi Michael, I always use header('Refresh: 2; url=' . $_SERVER['PHP_SELF']); to reload the current page every 2 seconds. You may want to pass $_GET variables, depending on your needs. Also make sure you call this function _before_ any other output has gone to the browser. HTH, Ivo On Mon, 08 Nov 2004 22:26:53 -0700, Michael Gale wrote: > Hello, > > I really wanted to know if there was a better way to do this using PHP > ? That is why I e-mailed the list. > > > Michael. > > > > Michael Gale wrote: >> Hello, >> >> I am working on a site where people will be updating information in >> a database and should have up to date info. Now since HTTP is stateless >> the user will not know about any new information until they click on a >> link or hit a button on the page. >> >> My question is -- if I want to keep a user up to date about changes to >> any information they might want to know would it be best to create a >> hidden frame of some sort which does a mete-refresh to a page looking >> for updates, and if found display a java popup window with a small FYI ? >> >> If so would a meta-refresh of 3-5 seconds be to aggressive ? What about >> server load ? >> >> Is there a better way ? >> >> Hope I was clear, thanks. >> >> Michael. >>

« previous php.general (#201596) next »