|
Posted by Yangshiqi on 03/02/05 10:14
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@operamail.com]
Sent: Wednesday, March 02, 2005 3:55 PM
To: php-general@lists.php.net
Subject: [PHP] 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
[Back to original message]
|