Call To Undefined Function Sql Connect Php Windows 7
Fatal error: call to undefined function mssql_connect() in C: Inetpub wwwroot web_intranet index. Progecad Pdf Printer more. php on line 17 I hope somebody can help or tell me what I should do. Decrypt Ioncube Php Files more. Jetbrains Phpstorm 6 0 Pro Version more. Conduire Un Vehicle Promenade Pdf Printer.
I've never used php before and am trying to connect to a SQL Server 2008 instance on a Windows machine running IIS7 and PHP5.3. I have downloaded and installed SQLSRV30.EXE from in C: Program Files (x86) PHP ext added this to C: Program Files (x86) PHP php.ini: extension=php_sqlsrv_53_nts.dll Then restarted the entire server.
I still get fatal errors in my log file saying: PHP Fatal error: Call to undefined function mssql_connect() What do I need to do to connect to Microsoft SQL Server 2008 from PHP 5.3 running on IIS7/Windows Server 2008? I'm sure it's something really dumb that I'm missing. I have just tried to install that extension on my dev server. First, make sure that the extension is correctly enabled. Your phpinfo() output doesn't seem complete.

If it is indeed installed properly, your phpinfo() should have a section that looks like this: If you do not get that section in your phpinfo(). Make sure that you are using the right version. There are both non-thread-safe and thread-safe versions of the extension. Finally, check your extension_dir setting.
By default it's this: extension_dir = 'ext', for most of the time it works fine, but if it doesn't try: extension_dir = 'C: PHP ext'. =========================================================================== EDIT given new info: You are using the wrong function. Mssql_connect() is part of the extension. You are using microsoft's extension, so use sqlsrv_connect(), for the API for the microsoft driver, look at SQLSRV_Help.chm which should be extracted to your ext directory when you extracted the extension.
I am using IIS and mysql (directly downloaded, without wamp or xampp) My php was installed in c: php I was getting the error of 'call to undefined function mysql_connect()' For me the change of extension_dir worked. This is what I did. In the php.ini, Originally, I had this line; On windows: extension_dir = 'ext' I changed it to:; On windows: extension_dir = 'C: php ext' And it worked. Of course, I did the other things also like uncommenting the dll extensions etc, as explained in others remarks.