mssql_connect error only on command line

From: Date: Wed, 02 Apr 2008 10:08:42 +0000
Subject: mssql_connect error only on command line
Groups: php.db 
Request: Send a blank email to php-db+get-44849@lists.php.net to get a copy of this message
Hi, I have a problem with all my php scripts that use MS SQL Server, but only when I start them from the command line I'm using Apache 2.2.4 with PHP 5.2.5 on a server Win2k3 with SP2, and MS SQL Server 2000 on another Win2k3 server. If I run the same script using a webbrower as an internet page it works fine, but if I run it from the command line (c:\>php scipt.php) I will receive messages like this: "Warning: mssql_connect(): Unable to connect to server: servername,1433 in c:\script.php on line #" Can someone have an idea what could be the problem? Can someone please help me? What should I do to make it working? Tanks a lot in advance. Davide

« previous php.db (#44849) next »