ahadyekta Posted September 23, 2012 Share Posted September 23, 2012 I have a problem in connecting the wampp localhost to sql server , There is a lan network that it`s server is windows server 2008 with sql server 2008 , I want to connect to this sql by php in a client with windows 7 , but when I run mssql_connect function It shows that coudlent connect to this IP , It shows Reply when I ping server IP . Do I have to change anything in wampp or php application in localhost ? It is php 5.3 the latestversion of wampp . Other programmers can connect to this sql by C sharp and Delphi , Only me cant access that by php I use VmWare also , and install windows server 2008 and sql server 2008 , and create network between win7 and windows server by NAT , even in this way I cant access to sql by php , but there is reply in pinging servers IP . Quote Link to comment https://forums.phpfreaks.com/topic/268690-problem-in-connecting-to-sql-server-2008-by-php/ Share on other sites More sharing options...
kicken Posted September 23, 2012 Share Posted September 23, 2012 You should be using the SQLSRV extension for php rather than the mssql extension. mssql is old and no longer supported. Setup the SQLSRV extension try it. If there are still problems post back. Quote Link to comment https://forums.phpfreaks.com/topic/268690-problem-in-connecting-to-sql-server-2008-by-php/#findComment-1380294 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.