Re: php script fails when run from cron

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

 



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@xxxxxxxxxx> 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.


[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