mssql_connect error only on command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux