Re: [PHP] auto refresh once

2005-03-02 Thread Burhan Khalid
William Stokes wrote: Hello, Is it possible to force one automatic refresh browser when user enters to a webpage? If so, how? Use the header() function. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] auto refresh once

2005-03-02 Thread yangshiqi
I can't guess your purpose, but may be you can do it like this. function refreshByOnce() { $isVisit = isset($_SESSION['isVisit'])?$_SESSION['isVisit']:false; If (!$isVisit) { $_SESSION['isVisit'] = true; Header('Location:http://yourdomain.co

Re: [PHP] auto refresh once

2005-03-02 Thread Devraj Mukherjee
Hi Will, Automatic refresh can be achieved by the use of a META tag. The meta tag looks like the following, where the 5 is the number of seconds, the URL is obviously the page. http://www.url.com/";> To refresh all you do is send the META tag out as part of the output the first time and dont d

Re: [PHP] auto refresh once

2005-03-02 Thread Bret Hughes
On Wed, 2005-03-02 at 01:55, William Stokes wrote: > Hello, > > Is it possible to force one automatic refresh browser when user enters to a > webpage? If so, how? javascript timer and a reload in a function called vi body onLoad wouldd do it I guess. if you are only going to do it once you nee