Re: Calling php from cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 22 Dec 2004 21:32:39 -0500, blackwater dev
<blackwaterdev@xxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux