RE: [PHP] auto refresh once

From: Date: Wed, 02 Mar 2005 08:14:12 +0000
Subject: RE: [PHP] auto refresh once
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209780@lists.php.net to get a copy of this message
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

« previous php.general (#209780) next »