简体   繁体   English

找不到sqlsrv PDO驱动程序

[英]sqlsrv PDO drivers not found

I am running PHP 5.6.31, and I am trying to download sqlsrv drivers. 我正在运行PHP 5.6.31,并且正在尝试下载sqlsrv驱动程序。 I am updating my php.ini files. 我正在更新php.ini文件。 I am putting the extension_dir correctly, and the files are in that directory. 我正确放置了extension_dir,文件位于该目录中。 I am putting the correct name in the php.ini for the extensions. 我在扩展名php.ini中输入了正确的名称。 However, when i run php --ini, I am getting this message 但是,当我运行php --ini时,我收到此消息

%1 is not a valid Win32 Application %1不是有效的Win32应用程序

Does anyone have any suggestions. 有没有人有什么建议。

Here is the image of the error I am getting: 这是我得到的错误的图像:

So I changed the extension from non-thread secure to thread secure files. 因此,我将扩展名从非线程安全更改为线程安全文件。 After doing this, the sqlsrv drivers showed up in phpinfo() 完成此操作后,sqlsrv驱动程序显示在phpinfo()中

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

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