Re: PHP + Cron jobs

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

 



On Mon, Sep 29, 2008 at 9:34 AM, Richard Lynch <rlynch@xxxxxxxxx> wrote:

>  If you are running PHP as CGI, replacing the CGI with CLI could be
> problematic down the road...
>
> 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?

If not, I went ahead with Richard's suggestion to use -q.  Assuming a Google
search is correct (since man php and php -help don't mention -q), that just
suppresses the HTML headers from being sent?

Thanks again,
Waynn

[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