如何使PDO在PHP 5.4的WAMP上运行? [英] How do I get PDO to work on WAMP with PHP 5.4?

查看:32
本文介绍了如何使PDO在PHP 5.4的WAMP上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使PDO在PHP 5.4的WAMP上工作? 我已经在WAMP(2.2d 32位)中安装了PHP 5.4.我的PHP.ini文件启用了它(在5.4 phpForApache.ini文件内部).我下载了用于Windows的最新PHP 5.4 Thread Safe.

How do I get PDO to work on WAMP with PHP 5.4? I have installed PHP 5.4 inside of WAMP (2.2d 32-bit). My PHP.ini file has it enabled (Inside of the 5.4 phpForApache.ini file). I downloaded the latest PHP 5.4 Thread Safe for windows.

但是我无法使PDO扩展正常工作.这是我的php信息文件:

But I can't get the PDO extension to work. Here is my php info file:

Configure Command   cscript /nologo configure.js "--enable-snapshot-build" 
"--disable-isapi" "--enable-debug-pack" "--disable-nsapi" "--without-mssql" 
"--without-pdo-mssql" "--without-pi3web" 
"--with-pdo-oci=C:\php-    sdk\oracle\instantclient10\sdk,shared" 
"--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-        sdk\oracle\instantclient11\sdk,shared" 
"--enable-object-out-dir=../obj/" "--enable-com-dotnet" 
"--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"


PDO drivers no value

推荐答案

文章:

尽管您现在已经支持5.4,但是您可能会缺少一些在其他平台上已经习惯的花哨的扩展程序和功能. 版本的PHP.这些可能包括:

Though you’ll now have support for 5.4, you’ll be missing some fancy extensions and features that you may have gotten used to on other versions of PHP. These may include:

Xdebug
APC
PDO drivers
Curl
etc…

我建议分开安装Apache 2,Mysql,PHP.而且工作正常.

I will suggest installing Apache 2, Mysql, PHP separately. And its working just fine.

这篇关于如何使PDO在PHP 5.4的WAMP上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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