簡體   English   中英

Windows 8的PHP SQL Server驅動程序

[英]php sql server driver for windows 8

有沒有辦法在Windows 8上連接php sql server驅動程序。 我正在使用php 5.5.6版本,但似乎Windows 8上的php不支持sql driver。 在sql driver的系統要求中,不包括Windows 8。 我在xampp服務器上為php安裝並配置了sql驅動程序,但是sqlsrv無法正常工作。 我已經安裝了extension = php_pdo_sqlsrv_54_ts.dllphp_sqlsrv_54_ts.dll,但它們都給我一條消息:

使用php_pdo_sqlsrv_54_ts.dll:

PHP Startup: pdo_sqlsrv: Unable to initialize module 
Module compiled with modue API=xxxxxx 
PHP compile with module API=zzzzzz
These options need to match

使用php_sqlsrv_54_ts.dll:

PHP Startup: sqlsrv: Unable to initialize module 
Module compiled with modue API=xxxxxx 
PHP compile with module API=zzzzzz
These options need to match

我遇到了同樣的問題,並解決了安裝PHP版本5.4.7問題,並下載了新版本的驅動程序:

Version: 3.1
File Name: SQLSRV31.EXE
Date Published: 05/11/2014

下載鏈接

並添加php.ini

extension = php_sqlsrv_54_ts.dll
extension = php_pdo_sqlsrv_54_ts.dll

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM