Home>Article>Backend Development> How to add mysqli extension to PHP
PHP enables mysqli extension
Call to undefined function mysqli_connect()
. To solve this problem, you need to enable the mysqli extension.
Steps:
1. Search php_mysqli.dll in php.ini
##2 , set the extension_dir command
##Search extension_dir
in php.ini
(
Note that you cannot fill in the relative path here. In my environment, the relative path is invalid when testing)
extension_dir = “G:/web/php7.1/ext”
3. Open successfully
Recommended tutorial:
PHP video tutorialThe above is the detailed content of How to add mysqli extension to PHP. For more information, please follow other related articles on the PHP Chinese website!