RE: [PHP-WIN] How do I get php to repeat and action every day?
| From: | Mike | Date: | Fri, 22 Apr 2005 03:16:42 +0000 |
| Subject: | RE: [PHP-WIN] How do I get php to repeat and action every day? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25899@lists.php.net to get a copy of this message | ||
> Hello,
>
> I wish to have a php file repeat every day at a certain time,
> is there any way to do this?
>
Yes and no.
PHP by itself can't do this. But you can easily set up a crontab
(http://www.google.com/search?hl=en&lr=&q=crontab&btnG=Search) or a windows
scheduled task pending on your server.
Then just call
php page.php
to execute it. Most hosts let you set up at least a few crontabs as long as
they're not running every minute or two.
-M