0

I am new for MSSQL. I wanted to make php setting for MSSQL. What i mean by that is to avoid following error while trying to establish connection using PHP and MSSQL

Fatal error: Call to undefined function mssql_connect()

. I thing i have to establish setting in php.ini but i am not able to do that. can any one please help me out how to do this PHP and MSSQL extension activated. I have uncommented the extension=php_pdo_mssql.dll in php.ini but did not worked. Please guide me to do so.

asked Jul 30, 2013 at 9:16

2 Answers 2

0

I'm registered had this type of problem with WampServer,

In my case I had to go edit the file directly in the folder (with wamp :'C:\wamp\bin\php\php5.3.0\php.ini'), because when I accessed to php.ini via the interface (and after restart all services) nothing changed. The image below shows that the two files are different (but I do not know why):

enter image description here

at the left the file is still commented after a restart.

It's therefore necessary to modify the correct php.ini file and restart all services,

I hope it will be useful,

answered Jul 30, 2013 at 10:38
5
  • in my php.ini file this extension is not there. even i have put that one in php.ini. but this dll in not there. Commented Jul 30, 2013 at 10:52
  • ok, I have got PHP 5.3, what's your version of PHP? Commented Jul 30, 2013 at 12:16
  • even mine is PHP 5.3.6 Commented Jul 30, 2013 at 12:18
  • you can then download the correct *.dll (check the version for 5.3.6) and copy this file in the "ext" folder (in your PHP folder). Then try to restart your server with uncomment lines. Commented Jul 30, 2013 at 12:31
  • i have done that too. Commented Jul 31, 2013 at 7:18
0

Please Refer: http://www.davidlauzon.net/2009/02/ms-sql-server-2008-with-php/. and do as needed. My problem is solved.

answered Jul 31, 2013 at 7:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.