Re: PHP as a cron job
| From: | mike cullerton | Date: | Wed, 16 Jan 2002 17:12:44 +0000 |
| Subject: | Re: PHP as a cron job | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80762@lists.php.net to get a copy of this message | ||
>> Unable to open /home/admin/webmin-0.85/ in Unknown on line 0
this is possibly a path or env issue. have you tried using absolute
filenames?
mike
on 1/16/02 10:07 AM, Tiago Luchini at luchini@galluch.com.br wrote:
> I am trying to run directly via PHP.
>
> I have tried setting 755 to the script and adding #!/usr/bin/php -q to it
> and also tried to change my cron line to run /usr/bin/php sending the script
> as a parameter. Both options run normally when logged on a TTY.
>
> Tiago
>
>
> ----- Original Message -----
> From: "Dennis Moore" <dmoore@ravens-nest.com>
> To: "Tiago Luchini" <luchini@galluch.com.br>; <php-general@lists.php.net>
> Sent: Wednesday, January 16, 2002 12:18 PM
> Subject: Re: [PHP] PHP as a cron job
>
>
>> Please provide more information on how you have set up PHP to run your
> cron
>> jobs. Are you trying to execute via LYNX or directly via a PHP script?
>>
>> /dkm
>>
>>
>> ----- Original Message -----
>> From: "Tiago Luchini" <luchini@galluch.com.br>
>> To: <php-general@lists.php.net>
>> Sent: Wednesday, January 16, 2002 8:20 AM
>> Subject: [PHP] PHP as a cron job
>>
>>
>> I have been trying to use some PHP scripts as a Linux cron job.
>>
>> It tries to run but replies that:
>> Unable to open /home/admin/webmin-0.85/ in Unknown on line 0
>>
>> I have no idea why PHP parser is making this confusion.
>> Could anyone bring some light to this mistery please?
>>
>> Atenciosamente,
>>
>> Tiago Luchini
>> Diretor Técnico-Comercial
>> Galluch Soluções Internet
>> Tel.: 0xx11 6912-3255
>> Cel.: 0xx11 7839-7740
>>
>
-- mike cullerton michaelc at cullerton dot com