knowram Posted April 27, 2008 Share Posted April 27, 2008 I have an apple that I have set up to run php. for some reason when I try to connect to a mssql server I get this error Warning: mssql_connect(): Unable to connect to server: The thing, it doesn't really seam like it is trying to connect. I know the user name and password works because it connects from a different server just fine. Any ideas? Thanks for the help Quote Link to comment Share on other sites More sharing options...
marcus Posted April 27, 2008 Share Posted April 27, 2008 What are you using for the mssql host? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted April 27, 2008 Share Posted April 27, 2008 Make sure your php server can reach the SQL server...ping it to be sure. Assuming that you used FreeTDS to create the mssql extension, use the tsql command to test the connection from the command line. Quote Link to comment Share on other sites More sharing options...
knowram Posted April 27, 2008 Author Share Posted April 27, 2008 the sql is running on a windows server and i can ping it. I have not heard of FreeTDS is that a mac or windows thing? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.