法甲

WIN下apache+PHP配置PDO扩展问题

2019-09-15 23:17:07来源:励志吧0次阅读

WIN下apache+PHP配置PDO扩展问题

我的环境是:

apache2.2.11

PHP Version 5.2.0

PHP所在目录:D:php

php.ini路径:D:phpphp.ini

apache的httpd.conf

PHPIniDir "d:php"

LoadModule php5_module "D:/PHP/php5apache2_2.dll"

php.ini中:

extension_dir = "D:phpext"

[PHP_CURL]

extension=php_curl.dll

;[PHP_GD2]

;extension=php_gd2.dll

[PHP_MYSQL]

extension=php_mysql.dll

;[PHP_MYSQLI]

;extension=php_mysqli.dll

[PHP_PDO]

extension=php_pdo.dll

;[PHP_PDO_FIREBIRD]

;extension=php_pdo_firebird.dll

[PHP_PDO_MYSQL]

extension=php_pdo_mysql.dll

===================================

运行时出现:

Fatal error: Class "PDO" not found in F:JetKingpdo.class.php on line 25

pdo.class.php第25行代码:

$this->pdo = new PDO($this->dns,self::DBUser,self::DBPassWord);

php_pdo.dll 未加载成功.

php_pdo_mysql.dll 未加载成功

php_curl.dll 未加载成功

确认

与 pdo, mysql, curl 相关的DLL文件都COPY过去了吗?

最好是把 php 安装 包里, php.exe 所在文件夹里的DLL文件全部复制过去..

libmcrypt.dll

libhttpd.dll

libeay32.dll

libmhash.dll

libmysql.dll

ssleay32.dll

yaz.dll

丁桂薏芽健脾凝胶怎么样
尿频夜尿增多吃什么
薏芽健脾凝胶作用
2个月婴儿咳嗽怎么办
分享到: