How to enable mysqli on XAMPP?(如何在 XAMPP 上启用 mysqli?)
本文介绍了如何在 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:如何在 XAMPP 上启用 mysqli?


基础教程推荐
猜你喜欢
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- php中的PDF导出 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01