note 74062 added to function.gmdate
| From: | tobias at dcode dot se | Date: | Thu, 22 Mar 2007 11:44:18 +0000 |
| Subject: | note 74062 added to function.gmdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124707@lists.php.net to get a copy of this message | ||
Thanks to Kogik's contribution above I was able to find a way for exec a script thru cron a
specific time (12:30, having the crontab on a US server and the actual script on a Swedish server.
$timezone = 1; // (GMT 01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien
$now = preg_replace('/\d{1}$/', 0, gmdate("H:i",
time()+3600*($timezone+date("I"))));
if ( $now == '12:30' ) echo 'ok to run..';
----
Server IP: 193.27.201.10 (proxied: 193.27.201.10 1.0 www1.shellkonto.se:3128 (squid/2.5.STABLE4))
Probable Submitter: 85.228.112.24
----
Manual Page -- http://www.php.net/manual/en/function.gmdate.php
Edit -- https://master.php.net/note/edit/74062
Del: integrated -- https://master.php.net/note/delete/74062/integrated
Del: useless -- https://master.php.net/note/delete/74062/useless
Del: bad code -- https://master.php.net/note/delete/74062/bad+code
Del: spam -- https://master.php.net/note/delete/74062/spam
Del: non-english -- https://master.php.net/note/delete/74062/non-english
Del: in docs -- https://master.php.net/note/delete/74062/in+docs
Del: other reasons-- https://master.php.net/note/delete/74062
Reject -- https://master.php.net/note/reject/74062
Search -- https://master.php.net/manage/user-notes.php