Re: refresh a php page

From: Date: Tue, 20 Jun 2000 19:14:17 +0000
Subject: Re: refresh a php page
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-2340@lists.php.net to get a copy of this message
Chris Moyer wrote: > On Tue, Jun 20, 2000 at 11:12:48AM -0700, Bernie Huang wrote: > > is t possible to refresh the page immediately when user first access the > > page and then later on just let <meta> tag determine the refreshing time > > period? > > Sure, have the initial php send a meta tag with a refresh time of 0, or a header > redirect... And have the url that it refreshes to, or redirects to include a > variable on the URL like... > > if(!isset($dontrefreshquick) && $dontresfreshquick != 1){ > echo meta tag to refresh right away; > url=foo.php3?dontrefreshquick=1 > } else { > echo metat tag to refresh slowly; > } > > -- Chris Moyer -- cmoyer@chekinc.com -- > PHP Developer -- Chek.com Hello, Thanks for all your inputs. They are really helpful. My situation is that there is a certain gif file that's constantly gets updated through a form, and in my html page, it always shows up the cached gif unless the browser is shut down and open again. This method will great in auto refresh. But what if a user wants to refresh it by clicking on a button? I looked into jscript, and 'location.reload()' seems to do the trick. BUT (another but...) I want to pass a embed URL into the reload() method. How do I do it? Thanks again! - Bernie

« previous php.general (#2340) next »