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.
2 Answers 2
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,
-
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.Pari– Pari2013年07月30日 10:52:05 +00:00Commented Jul 30, 2013 at 10:52
-
ok, I have got PHP 5.3, what's your version of PHP?Benno– Benno2013年07月30日 12:16:36 +00:00Commented Jul 30, 2013 at 12:16
-
-
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.Benno– Benno2013年07月30日 12:31:17 +00:00Commented Jul 30, 2013 at 12:31
-
Please Refer: http://www.davidlauzon.net/2009/02/ms-sql-server-2008-with-php/. and do as needed. My problem is solved.