Re: how to execute a php script thru a cron job
| From: | Daniel Rezny | Date: | Thu, 06 Sep 2001 15:21:00 +0000 |
| Subject: | Re: how to execute a php script thru a cron job | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66227@lists.php.net to get a copy of this message | ||
Hello Carry,
Thursday, September 06, 2001, 5:05:53 PM, you wrote:
CI> hello,
CI> can anybody suggest me how to execute a php file thru a cron job?
CI> i have a php script which checks for invalid links in my links database and mails the result
CI> to the site admin if any 400 series errors are found.
CI> thanks in advance.
If you have a binary php version you can do it like this:
/path/to/php/binary /path/to/script
Or you can do it thru lynx like this:
/path/to/lynx -dump www.some_server.com/script.php
I hope it helps.
--
Best regards,
Daniel mailto:daniel@rezny.sk