配置IIS+PHP+MSSQL环境

1.首先下载PHP
https://windows.php.net/download#php-7.0

2.然后下载PDO SQLSRV
https://www.microsoft.com/en-us/download/details.aspx?id=20098

版本对应关系如下:

* Version 4.0 supports PHP 7.0+ on Windows and Linux
* Version 3.2 supports PHP 5.6, 5.5, and 5.4 on Windows
* Version 3.1 supports PHP 5.5 and 5.4 on Windows
* Version 3.0 supports PHP 5.4 on Windows

3.修改PHP.INI引入DLL

extension=php_pdo_sqlsrv_56_nts.dll
extension=php_sqlsrv_56_nts.dll

4.安装 ODBC Driver 11

版本对应关系如下: