Thijs Lensselink wrote on woensdag 17 maart 2004 12:17:

> Daryl Meese wrote on woensdag 17 maart 2004 12:04:
> 
>> Hello all,
>> 
>> Ok,  I run php as an apache module but need to have some php scripts
>> called from a cron.  Since you can't have php installed as a cgi &
>> apache module I don't know how to do this.
>> 
>> Any help would be appreciated.
>> 
>> TIA
>> 
>> Daryl Meese
> 
> With php installed as an apache module you can still
> run php-scripts from commandline. It should work.
> 
> If i create the following file:
> 
> test.php
> <?
> #!/usr/local/bin/php
> mail("[EMAIL PROTECTED]", "Sample", "testing cronjob");
>> 
> 
> And create a new cronjob:
> 
> crontab
> 30       *       *       *       *       php /path to/test.php
> 
> This will make cron run the script.
> Just tested it and it works.
> 
> Thijs


Hello daryl,

Seems like i have made a little error. It look slike the OpenBSD ports
php package install the cli version next to the .so version.
So running both the .so and the cli version is no problem. Just use the
cli version for the cronjobs.

Thijs

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

Reply via email to