Re: mssql_connect not working from command line

From: Date: Tue, 11 Sep 2007 14:25:00 +0000
Subject: Re: mssql_connect not working from command line
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-43994@lists.php.net to get a copy of this message
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 apache version of the php.ini file is different to the cli version. Make sure you are looking at the right one. On debian I have two separate directories for each config - /etc/php5/apache2/ and /etc/php5/cli/ Try this: php -i | grep 'php.ini' from the command line to work out which php.ini to look at.
Both your command php -i | grep 'php.ini' and find / -name php.ini 2>/dev/null report the single /etc/php.ini Is there something in php.ini that would: 1) Allow web pages to work with mssql_connect 2) Allow the command line to use other PHP functions 3) Disallow mssql_connect from a script run from the command line _________________________________________________________________ Can you find the hidden words?  Take a break and play Seekadoo! http://club.live.com/seekadoo.aspx?icid=seek_hotmailtextlink1

« previous php.db (#43994) next »