如何在 XAMPP 上启用 mysqli?

时间:2023-03-06
本文介绍了如何在 XAMPP 上启用 mysqli?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

通过查看整个 Internet 上的建议,我尝试将所有查询转换为 mysqli.

By seeing suggestions throughout the Internet I tried to convert all my queries to mysqli.

但是 mysqli 在我的 XAMPP 中不起作用.我检查了我的 PHP 文件夹,发现有一个 php_mysqli.dll 文件...仍然不起作用

But mysqli is not working in my XAMPP. I checked my PHP folder and there is a php_mysqli.dll file... still it doesn't work

推荐答案

你有没有把它声明到 php.ini 来加载它?如果没有,请尝试在 php.ini 中找到它并添加 php_mysqli.dll

Have you declare it to php.ini to load it? If no, try find this in php.ini and add php_mysqli.dll

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
; 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= php_mysqli.dll

这篇关于如何在 XAMPP 上启用 mysqli?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:致命错误:不在对象上下文中时使用 $this 下一篇:带有 SET 变量语句的 Mysqli 查询(即多个查询)

相关文章