简体   繁体   English

Windows 7 sp1上具有Apache的php 7.1无法加载sql服务器驱动程序扩展

[英]php 7.1 with Apache on Windows 7 sp1 can't load sql server driver extension

I can't load sql server driver in php 7.1. 我无法在php 7.1中加载sql服务器驱动程序 I followed all the instructions on Microsoft and PHP websites, did the procedure many times, but always the same end. 我按照MicrosoftPHP网站上的所有说明进行了很多次操作,但是始终相同。 This is what i did: 这就是我所做的:

  1. download the drivers from https://www.microsoft.com/en-us/download/details.aspx?id=20098 and extract the files in c:\\php7\\ext https://www.microsoft.com/zh-cn/download/details.aspx?id=20098下载驱动程序,然后将文件解压缩到c:\\php7\\ext
  2. edit php.ini as in the screenshot and edit extension_dir="c:\\php7\\ext" 在屏幕截图中编辑php.ini,然后编辑extension_dir="c:\\php7\\ext"
  3. restart apache 重新启动Apache

I run SQL SERVER 2012. 我运行SQL SERVER 2012。

Thank you in advance for your help. 预先感谢您的帮助。 在此处输入图片说明

see https://docs.microsoft.com/en-us/sql/connect/php/system-requirements-for-the-php-sql-driver which clearly states that SQL Server Driver for PHP 7.1 needs driver version 4.3, 5.2, or 5.3 none of which work with Windows 7. The oldest supported desktop OS version for the 4.3.x series is Windows 8; 请参阅https://docs.microsoft.com/zh-cn/sql/connect/php/system-requirements-for-the-php-sql-driver ,其中明确指出用于PHP 7.1的SQL Server驱动程序需要驱动程序版本4.3、5.2或5.3 都不能在Windows 7上使用。4.3.x系列支持的最早的桌面OS版本是Windows 8; Windows 7不能支持该版本。 and the oldest supported desktop OS version for the 5.x series is Windows 8.1 并且最受支持的5.x系列桌面操作系统版本是Windows 8.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM