I'm trying to connect Apache/PHP on Windows to SQL Server on the same Windows box.
I am able to connect to the database from my linux virtual machine and I can connect to SQL Server with sqlcmd from the Windows command line. I just can't seem to get PHP to connect, so I assume I'm using an incorrect module somewhere. I've done lots of reading and nothing seems to make this work.
Any ideas?
Apache 2.2, PHP 5.2
$myServer = ".\SQLEXPRESS";
$myUser = "sa";
$myPass = "test1234";
$myDB = "eel";
mssql_connect($myServer, $myUser, $myPass)
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: .\SQLEXPRESS in