PHP Error: “Call to undefined function mysqli_connect()”

匆匆过客 提交于 2019-12-05 09:31:57

On Ubuntu machines you can try:

sudo apt-get install php5-mysql

since the basic PHP5 install does not include the mysqli_connect function.

You can set the path using PHPIniDir in .htaccess or your server config.

ie.

PHPIniDir "C:/Apache2.2/php"

You won't have to recompile PHP if the extension gets loaded correctly (so make sure your extension_dir is correct), just make sure you restart Apache after you made these changes.

Wes

You need to recompile PHP with the extension for this library.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!