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.
>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php