安装PHP的SQL Server驱动程序 [英] Installing SQL Server driver for PHP

查看:332
本文介绍了安装PHP的SQL Server驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已安装:


  1. Windows Server 2008 R2 x64

  2. IIS 7

  3. PHP 5.5(5.5.9)VC11 x64非线程安全(2014年2月6日00:36:15)

  4. MSVC11(Visual C ++ 2012)

  5. Sql Server 2008

  6. Sql Native Client

  1. Windows Server 2008 R2 x64
  2. IIS 7
  3. PHP 5.5 (5.5.9) VC11 x64 Non Thread Safe (2014-Feb-06 00:36:15)
  4. MSVC11 (Visual C++ 2012)
  5. Sql Server 2008
  6. Sql Native Client

一切都很完美除外PHP的MSSQL驱动程序。我搜索了很多并下载了很多 dll 文件。每次我收到此错误:

Everything works perfectly except the MSSQL driver for PHP. I have Googled a lot and downloaded lots of dll files. Every time I get this error:


PHP警告:PHP启动:无法加载动态库c:\ php \ extrax \\ php_sqlsrv_54_nts.dll - %1不是有效的Win32应用程序。第0行的未知中的

PHP Warning: PHP Startup: Unable to load dynamic library c:\php\ext\php_sqlsrv_54_nts.dll - %1 is not a valid Win32 application. in Unknown on line 0

有谁能告诉我如何找到指定的驱动程序?在此先感谢。

Can anyone tell me that how can I find the specified driver? Thanks in advance.

推荐答案

文件名中有一个线索php_sqlsrv_54_nts.dll

There's a clue in the file name php_sqlsrv_54_nts.dll

54指PHP 5.4。对于PHP 5.5,SQL驱动程序尚未(正式)存在。

The "54" refers to PHP 5.4. The SQL Driver doesn't (officially) exist yet for PHP 5.5.

:(

有些人有在非官方版本上工作,但我只会用它们进行本地测试。
用于php 5.5.x的Microsoft sqlsrv扩展

Some people have worked on unofficial builds, but I would only use them for local testing. Microsoft sqlsrv extension for php 5.5.x

目前官方版本仅适用于5.4.x

At present official releases only work with 5.4.x

这篇关于安装PHP的SQL Server驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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