How to add mysqli extension to PHP

王林
Release: 2023-02-24 14:54:01
Original
4822 people have browsed it

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

How to add mysqli extension to PHP

##2 , set the extension_dir command

How to add mysqli extension to PHP

##Search extension_dir

in php.ini

How to add mysqli extension to PHP(

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”
Copy after login

Check G:/web/php7.1 Does php_mysqli.dll exist in the /ext installation path (if it does not exist, the PHP installation package may be damaged, please download it again)

3. Open successfully

How to add mysqli extension to PHPRecommended tutorial:

PHP video tutorial

The 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template