So I have a pretty simple connection script to connect to the SQL database on web.com
Code:
define ('DB_SERVER', 'xxx.xxx.xxx.xxx');
define ('DB_USER', 'username');
define ('DB_PASSWORD', 'password');
define ('DB_NAME', 'thedatabase');
$dbc = mssql_connect (DB_SERVER, DB_USER, DB_PASSWORD)
or die ('Could not connect to MSSQL');
@mssql_select_db (DB_NAME)
or die ('Could not select the database');
[\code]
Well, this little script worked just fine for about 2 years. Last month, web.com "upgraded" our account (and I use the term "upgraded" very loosely as this is the 2nd serious issue we've had since the upgrade) and since our account was "upgraded" the script doesn't work. Instead I get a nice error message like so
[code]
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: xxx.xxx.xxx.xxx in \\HOSTING\DFS....
[\code]
I've attempted contacting web.com, and frankly the cup of coffee that I drank while I was on hold waiting for support to answer was more usefull then support. They claim that since one can make an ODBC connection to the database through windows (which I can), that it's working just fine and the issue is with my script (even though my script hasn't changed in 2 years and it worked fine before the upgrade). I've spent about 3 hours this morning trying several different ways to connect via my PHP script and tried several different google searches but I still can't find a solution. Has anyone run across this before and have an suggestions on how to get my script to work once again? Remember, this is a hosted site, so I don't have access to the ntwdblib.dll to check what version it is or to edit anything in the php.ini file (however I've checked the phpinfo() and mssql.secure_connection is set to off).
Thanks in advance.