Re: PHP + Cron jobs
| From: | Waynn Lue | Date: | Wed, 01 Oct 2008 11:44:16 +0000 |
| Subject: | Re: PHP + Cron jobs | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281272@lists.php.net to get a copy of this message | ||
Oh, I thought having one for cgi and one for cli was common. Do people
generally run only one, regardless of whether they're hitting it from
a webserver or running it from the commandline?
Thanks,
Waynn
On 10/1/08, Per Jessen <per@computer.org> wrote:
> Waynn Lue wrote:
>
>> Right, and I am, so I stayed away from that solution. My next
>> attempt was to specify /usr/local/bin/php in the cron job, but that
>> led to a problem because of the include paths. Now that I specific
>> the full path, evidently the include path no longer is relative to the
>> directory that's being executed from, and so it fails to execute. One
>> solution is to also include the executing directory in the php script
>> itself, I assume, but is there any better solution than that?
>>
>
> I would take a look at your core problem - why do you have php
> executables in both /usr and /usr/local?
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>