How to enable mysqli extension in php

王林
Release: 2023-03-04 11:18:01
Original
7185 people have browsed it

php method to open the mysqli extension: first open the php.ini configuration file; then find [extension=php_mysqli.dll] and uncomment it; finally find [extension_dir] and set the ext path.

How to enable mysqli extension in php

Specific steps:

(Recommended tutorial: php graphic tutorial)

Open first php.ini configuration file, search for php_mysqli.dll;

How to enable mysqli extension in php

and then set the extension_dir directive

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+)
; extension folders as well as the separate PECL DLL download (PHP 5+).
; Be sure to appropriately set the extension_dir directive.
;一定要适当地设置extension_dir指令。
Copy after login

(Video tutorial recommendation: php video Tutorial)

Finally search extension_dir in php.ini;

How to enable mysqli extension in php

extension_dir = “G:/web/php7.1/ext”
Copy after login

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

After completing the above steps, it will be activated successfully.

The above is the detailed content of How to enable mysqli extension in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
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