note 30808 added to function.mktime
| From: | Martin at rack1 dot php dot net | Date: | Sat, 29 Mar 2003 19:28:31 +0000 |
| Subject: | note 30808 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45987@lists.php.net to get a copy of this message | ||
To refresh the page every day @8:00 A.M.:
$remaining = mktime(8,0,0,date('n'),date('j')+1,date('Y')) - time();
header("Refresh: $remaining;URL=http://www.example.com");
Useful if the page is displayed 24/7, e.g. in public where noone hits "Reload".
--
http://www.php.net/manual/en/function.mktime.php
http://master.php.net/manage/user-notes.php?action=edit+30808
http://master.php.net/manage/user-notes.php?action=delete+30808
http://master.php.net/manage/user-notes.php?action=reject+30808