lerroux
Apr 29th, 2009, 04:51 AM
hi,
i have a mssql server 2005 database on a windows server 2003 machine and would like to connect to it from my php webserver which is a centos based server.
i tried the mssql_connect() from my php code and it gave me the error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: {sql server ipaddress}
i installed wamp on my winxp workstation and tried it there. got the same error.
i can connect to the sql server from my winxp using the sql dev studio.
i also tried to google and found several workarounds:
i'm sure php.ini has extension=php_mssql.dll and mssql.secure_connection = Off
and i also have ntwdblib.dll in all directories, system32, apache2/bin, php
no use.
still got the same error
help!
cheers,
lerroux
i have a mssql server 2005 database on a windows server 2003 machine and would like to connect to it from my php webserver which is a centos based server.
i tried the mssql_connect() from my php code and it gave me the error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: {sql server ipaddress}
i installed wamp on my winxp workstation and tried it there. got the same error.
i can connect to the sql server from my winxp using the sql dev studio.
i also tried to google and found several workarounds:
i'm sure php.ini has extension=php_mssql.dll and mssql.secure_connection = Off
and i also have ntwdblib.dll in all directories, system32, apache2/bin, php
no use.
still got the same error
help!
cheers,
lerroux