PHP错误:“调用未定义的函数mysqli_connect()” [英] PHP Error: "Call to undefined function mysqli_connect()"
本文介绍了PHP错误:“调用未定义的函数mysqli_connect()”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在PHP中,我收到此错误:
In PHP I'm getting this error:
Call to undefined function mysqli_connect()
我检查了我的 php.ini
文件,没有;
前面的
extension = php_mysql.dll
或 extension = php_mysqli.dll
。
I checked my php.ini
file and there is no ;
in front of extension=php_mysql.dll
or extension=php_mysqli.dll
.
我认为我得到这个错误,因为我的形象File(php.ini)Path是 C:\Windows
。如何将其更改为 C:\Apache2.2\php\php.ini
?
I think the I am getting this error because my figuration File (php.ini) Path is C:\Windows
. How would I change it to C:\Apache2.2\php\php.ini
?
推荐答案
在Ubuntu机器上,您可以尝试:
On Ubuntu machines you can try:
sudo apt-get install php5-mysql
因为基本PHP5安装不包括 mysqli_connect
函数。
since the basic PHP5 install does not include the mysqli_connect
function.
这篇关于PHP错误:“调用未定义的函数mysqli_connect()”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文