当前位置:Gxlcms > PHP教程 > php如何开启mysqli扩展

php如何开启mysqli扩展

时间:2021-07-01 10:21:17 帮助过:124人阅读

php开启mysqli扩展的方法:首先打开php.ini配置文件;然后找到【extension=php_mysqli.dll】,并取消注释;最后找到【extension_dir】,设置ext路径即可。

具体步骤:

(推荐教程:php图文教程)

首先打开php.ini配置文件,搜索php_mysqli.dll;

197a50350a9102bbdd06556f7e1e620.png

然后设置extension_dir指令

; 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指令。

(视频教程推荐:php视频教程)

最后在php.ini里面搜索extension_dir;

a0713b74e26b2b676db8933fbe6eb40.png

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

检查G:/web/php7.1/ext安装路径是否存在php_mysqli.dll(如果不存在应该是PHP安装包损坏,请重新下载)。

完成以上步骤就开启成功了。

以上就是php如何开启mysqli扩展的详细内容,更多请关注gxlcms其它相关文章!

人气教程排行