RE: [PHP] Waiting for a time (or counting down) to execute an event
| From: | John W. Holmes | Date: | Sat, 03 May 2003 01:47:59 +0000 |
| Subject: | RE: [PHP] Waiting for a time (or counting down) to execute an event | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146221@lists.php.net to get a copy of this message | ||
> Is there a function, or could somebody help me devise a way, to have a
php
> script count down seconds, or wait for a specific system time to
arrive,
> before continuing with a script? I'm working on a system that would do
> something every X number of seconds, and I'm trying to figure out if I
can
> do it all in PHP or if I'm going to need some kind of back-end.
http://us2.php.net/manual/en/function.register-tick-function.php
may help you...
or just sleep()... www.php.net/sleep
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/