I am having difficulty getting PHP 7 to load the SQLSRV library.
IIS running on Windows Server 2012.
PHP 7.1.2 64-bit is installed. (I have tried 32-bit also.) PHP itself seems to be installed and configured correctly because phpinfo() produces output.
I downloaded
SQLSRV 4. I extracted php_sqlsrv_7_nts_x64.dll and placed it in the ext folder of my PHP 7 installation. I added this line to php.ini:
extension=php_sqlsrv_7_nts_x64.dll
phpinfo() does not contain a section for SQLSRV, and when I call sqlsrv_connect(), PHP generates an error saying that this is an undefined function.
I know that PHP is looking in the correct folder for the extension. (PHP.ini also enables the openSSL and mbstring extensions. If I comment out these in php.ini, then these 2 also disappear from the phpinfo() report. Also, I can see (by using procmon) that PHP is reading the SQLSRV DLL.)
I'm sure I am overlooking a small detail. Can someone please suggest what I am missing?
Cam