SQLSRV for PHP 32/64位驱动合集

sqlsrv-for-php-32-and-64.zip 的资源包,挺适合你手上有老项目还要连 SQL Server 的场景。支持 32 位和 64 位环境,兼容 PHP 5.3 到 5.6,dll 文件分得也挺细,TS、NTS 版本都带了。基本就是你用 Wamp、XAMPP 或者 ThinkPHP 想连 SQL Server,用它准没错。php_sqlsrv_xx_ts.dll是主力,用线程安全的版本跑在线上环境更稳。如果你用 PDO 的方式访问数据库,那就用php_pdo_sqlsrv_xx_ts.dll,语法更统一,安全性也高不少。

压缩包里内容整理得还算清楚,直接解压,把你对应版本的 DLL 放进ext目录,在php.ini里加上extension=php_sqlsrv_xx_ts.dll,重启一下 Web 服务就 OK 了。

嗯,要注意的是,你得确保用的 PHP 版本是线程安全还是非线程安全,不然加载的时候容易报错。用phpinfo()一看就知道了。

如果你开发的是老项目,比如还跑在 PHP 5.3 或 5.4 上,这个包简直是宝藏,找不着驱动时就靠它了。链接里还附带了不少使用案例和其他版本的搭配方法,蛮实用的。

zip
sqlsrv-for-php-32-and-64.zip 预估大小:24个文件
file
php_sqlsrv_54_nts.dll 144KB
file
php_pdo_sqlsrv_55_nts.dll 144KB
file
php_pdo_sqlsrv_56_nts.dll 144KB
file
php_pdo_sqlsrv_53_nts.dll 131KB
file
php_pdo_sqlsrv_56_ts.dll 146KB
folder
x64 文件夹
file
php_pdo_sqlsrv_55_nts.dll 186KB
file
php_pdo_sqlsrv_56_nts.dll 186KB
file
php_pdo_sqlsrv_56_ts.dll 189KB
file
php_sqlsrv_56_ts.dll 214KB
file
php_pdo_sqlsrv_55_ts.dll 189KB
file
php_sqlsrv_55_ts.dll 213KB
file
php_sqlsrv_55_nts.dll 207KB
file
php_sqlsrv_56_nts.dll 207KB
file
php_sqlsrv_56_ts.dll 160KB
file
php_pdo_sqlsrv_55_ts.dll 146KB
file
php_sqlsrv_55_ts.dll 160KB
file
php_sqlsrv_55_nts.dll 157KB
file
php_pdo_sqlsrv_54_nts.dll 132KB
file
php_sqlsrv_56_nts.dll 157KB
file
php_sqlsrv_53_ts.dll 147KB
file
php_pdo_sqlsrv_53_ts.dll 134KB
file
php_pdo_sqlsrv_54_ts.dll 134KB
file
php_sqlsrv_54_ts.dll 147KB
file
php_sqlsrv_53_nts.dll 144KB
zip 文件大小:1.6MB