RE: auto refresh once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.com');
		Exit;
	}
}

But unfortunately this will give your server more press, since you must use
session here. So if your site have a very huge visits, pls be careful.
 
Best regards,
Yang Shiqi
 
 
 

-----Original Message-----
From: William Stokes [mailto:kalles@xxxxxxxxxxxxx] 
Sent: Wednesday, March 02, 2005 3:55 PM
To: php-general@xxxxxxxxxxxxx
Subject:  auto refresh once

Hello,

Is it possible to force one automatic refresh browser when user enters to a 
webpage? If so, how?

Thanks
-Will 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux