mssql_connect error only on command line

[email protected] ("Molteni Davide")
Newsgroups php.db
Message-ID <[email protected]>
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.