本文介绍了在Windows上的PHP7安装中找不到mysqli类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从以下位置下载并安装了php7: http://windows .php.net/qa/#php-7.0-ts-VC14-x64

I downloaded and installed php7 from: http://windows.php.net/qa/#php-7.0-ts-VC14-x64

php代码运行正常.我无法使用"mysqli"类连接数据库.它说

The php codes are running fine.I am not able to connect database using 'mysqli' Class. It says

我在php.ini文件中未注释extension=php_mysqli.dll.安装php7时,我是否错过任何事情?

I've uncommented extension=php_mysqli.dll in php.ini file.Did I miss anything while installing php7.

推荐答案

我解决了这个问题,这是一个愚蠢的错误.未设置extension_dir.我将其设置为extension_dir = "C:\php7\ext"并且可以正常工作.

I solved the issue, it was a silly mistake. The extension_dir was not set. I set it to extension_dir = "C:\php7\ext" and its working fine.

这篇关于在Windows上的PHP7安装中找不到mysqli类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:10
查看更多