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!