appserv怎么加载pdo,我将php.ini里的pdo都打开了.但是仍然报错
PHP配置文件:extension=php_msql.dllextension=php_mssql.dllextension=php_mysql.dllextension...
PHP配置文件:
extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_oci8.dll
extension=php_openssl.dll
extension=php_pdo.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=php_pspell.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
extension=php_sybase_ct.dll
extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll
extension = pdo.so
extension = pdo_mysql.so.
报错:
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but the extension is not loaded' in C:\AppServ\www\library\Zend\Db\Adapter\Pdo\Abstract.php:107 Stack trace: #0 C:\AppServ\www\library\Zend\Db\Adapter\Abstract.php(417): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 C:\AppServ\www\library\Zend\Db\Adapter\Pdo\Abstract.php(230): Zend_Db_Adapter_Abstract->query('SET NAMES UTF8', Array) #2 C:\AppServ\www\application\bootstrap.php(23): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES UTF8') #3 C:\AppServ\www\public\index.php(9): require('C:\AppServ\www\...') #4 {main} thrown in C:\AppServ\www\library\Zend\Db\Adapter\Pdo\Abstract.php on line 107 展开
extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_oci8.dll
extension=php_openssl.dll
extension=php_pdo.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=php_pspell.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
extension=php_sybase_ct.dll
extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll
extension = pdo.so
extension = pdo_mysql.so.
报错:
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but the extension is not loaded' in C:\AppServ\www\library\Zend\Db\Adapter\Pdo\Abstract.php:107 Stack trace: #0 C:\AppServ\www\library\Zend\Db\Adapter\Abstract.php(417): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 C:\AppServ\www\library\Zend\Db\Adapter\Pdo\Abstract.php(230): Zend_Db_Adapter_Abstract->query('SET NAMES UTF8', Array) #2 C:\AppServ\www\application\bootstrap.php(23): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES UTF8') #3 C:\AppServ\www\public\index.php(9): require('C:\AppServ\www\...') #4 {main} thrown in C:\AppServ\www\library\Zend\Db\Adapter\Pdo\Abstract.php on line 107 展开
3个回答
展开全部
去掉;号后,要重起一下环境.
还有就是有可能 php目录\php\ext 这个目录下没有php_pdo.dll这个扩展
还有就是你输出phpinfo信息 查找"extension_dir" 这个看扩展目录是否指向正确
如果还不对!那就是你人品问题了!
还有就是有可能 php目录\php\ext 这个目录下没有php_pdo.dll这个扩展
还有就是你输出phpinfo信息 查找"extension_dir" 这个看扩展目录是否指向正确
如果还不对!那就是你人品问题了!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1. 查看php扩展目录ext下是否有对应的pdo的dll文件,如果没有需要下载相应版本放置到该目录下;
2. 修改php.ini文件后需要重启apache服务器进程
2. 修改php.ini文件后需要重启apache服务器进程
参考资料: http://www.retudou.com
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
ZEND 引擎错误,建议重新安装ZEND 或者用APACHE自己配置 百试百灵的!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询