Quantcast
Channel: Microsoft Drivers for PHP for SQL Server forum
Viewing all articles
Browse latest Browse all 391

php_mssql.dll not loading in PHP.ini

$
0
0

I am running PHP 5.6.21 under IIS on Windows Server 2012R2. PHP is working great.

I need PHP to connect to a Microsoft SQL database, so I have this line uncommented in php.ini: extension=php_mssql.dll

Yes, I have that file in the ext folder, and the correct folder is listed for extensions in the php.ini file.

I also have SQL Native client installed, the ODBC drivers, and the PHP SQL drivers.

When I go to connect to a SQL database, I get: Fatal error: Call to undefined function mssql_connect() in....

This EXACT code is working on an older 2003 server. 

If I look at the phpinfo on the new server, this is in the "configure command" area:

cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql""--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/""--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo"

That looks strange - it has "without-mssql" listed there...is this what is preventing mssql from working? Since I have the extension loading in the php.ini file, I don't know where else to look...

Any help GREATLY appreciated - Thanks!


Viewing all articles
Browse latest Browse all 391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>