找不到SQLSRV PDO [英] SQLSRV PDO could not be found

查看:162
本文介绍了找不到SQLSRV PDO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7 x64和XAMPP x86板上配置php_pdo_sqlsrv_55_ts.dll.

I'm trying to configure php_pdo_sqlsrv_55_ts.dll on Windows 7 x64, with on board XAMPP x86.

我已经正确安装了SQL Native Client 2012和Microsoft Visual C ++可再发行组件(x64)包(我不知道是否需要最后一个).

I've correctly installed the SQL Native Client 2012 and the Microsoft Visual C++ Redistributable (x64) package (I don't know if the last one is needed or not).

我已将从非官方发行版下载的php_pdo_sqlsrv_55_ts.dllphp_sqlsrv_55_ts.dll库都复制到C:\ xampp \ php \ ext \中,发现

I've copied to C:\xampp\php\ext\ both the php_pdo_sqlsrv_55_ts.dll and the php_sqlsrv_55_ts.dll libraries downloaded from the unofficial release found here.

然后,我编辑了php.ini,添加了两个库并重新启动了Apache Web服务器,但是在 phpinfo()页面中没有sqlsrv驱动程序的痕迹.

Then I've edited the php.ini adding the two libraries and restarted the Apache web server but in the phpinfo() page there are not traces of the sqlsrv driver.

Apache错误日志显示:

The Apache error log says:

[21-Jan-2014 10:56:56 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pdo_sqlsrv_55_ts.dll' - Could not find the specified module.

 in Unknown on line 0

[21-Jan-2014 11:01:08 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_sqlsrv_55_ts.dll' - Could not find the specified module.

 in Unknown on line 0

我做错了什么?如果我尝试打开指定的路径,则可以正确找到2个dll.

What am I doing wrong? If I try to open the specified paths I can correctly find the 2 dll.

推荐答案

您已经安装了此文件:

  • Microsoft Visual C ++可再发行(x64)

...但是您需要x86版本,因为这是您扩展程序的体系结构.

... but you need the x86 version since that's the architecture of your extension.

这篇关于找不到SQLSRV PDO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆