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:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 3:55 PM
To: [email protected]
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php