Re: php script fails when run from cron
| From: | blackwater dev | Date: | Thu, 04 May 2006 16:54:04 +0000 |
| Subject: | Re: php script fails when run from cron | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235535@lists.php.net to get a copy of this message | ||
I finally got it working and Chris was correct. It appears that cron was
using the wrong php. Pumping the errors of even logging them wouldn't have
helped as I was tweaking the ini for the php I thought it was using. When I
explicitly tell it which one to use, it seems to work fine.
Thanks!
On 5/4/06, Jay Blanchard <jblanchard@pocket.com> wrote:
[snip] The code then goes on to move some data from a remote SQL Server db to the local mysql. When finished, the log stops at "got two classes". I am trying to debug now to see which of the two classes it seems to be failing on. I don't have anything in the php error log. The MSSQL connection uses freetds so I am not sure if it is something there but again this script runs fine with just php myfile.php. [/snip] Are you logging errors? If so you will likely locate the cause there. If I were to hazard a guess at would be because include files are not getting included as I have seen that behavior before.