For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2007 > mssql_connect not working from command line









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mssql_connect not working from command line
Instruct ICC

2007-09-10, 7:00 pm

I had cronjobs running fine on Linux which included a file which called
mssql_connect.

Today when I run the cronjob script directly from the command line, I get:
PHP Fatal error: Call to undefined function mssql_connect() in
/the/included/file.php on line #

Fatal error: Call to undefined function mssql_connect() in
/the/included/file.php on line #

I also notice that the cronjob started failing 1 month ago.

The file is owned by the command line user and apache is in its group and
vice versa.

However, a web page that includes the same file with the mssql_connect call
still works fine, and now it makes sense that I see mssql is still enabled
in phpinfo.

The admin says nothing changed.

Is there a setting that must have been changed to disallow this function
from working on the command line?

I'm using PHP Version 5.1.6 and /etc/php.ini has changed 2 months ago and
the cronjob worked since then.

________________________________________
_________________________
Gear up for HaloŽ 3 with free downloads and an exclusive offer.
http://gethalo3gear.com?ocid=Septem...alo3_MSNHMTxt_1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com