You are here: RE: [PHP] auto refresh once « PHP « IT news, forums, messages
RE: [PHP] auto refresh once

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация