[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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php