Re: Calling php from cron
| From: | Greg Donald | Date: | Thu, 23 Dec 2004 05:51:18 +0000 |
| Subject: | Re: Calling php from cron | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205042@lists.php.net to get a copy of this message | ||
On Wed, 22 Dec 2004 21:32:39 -0500, blackwater dev
<blackwaterdev@gmail.com> wrote:
> I need to use cron to call my php simpletest runner but am not sure of
> the syntax. What syntax would I use for the cron job to call an
> external webpage? My webhost uses webmin where I can just enter the
> command. I don't want to call a page on the server but an another
> server.
cron can't 'call' a webpage, it's just the scheduling mechanism for
other commands. You might try entering a PHP command as a cron entry
if that's what you mean.
* * * * * /usr/bin/php -r 'echo file_get_contents( "http://php.net"
);' >/dev/null 2>&1
There's also wget, curl, etc..
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/