如何在XAMPP上启用mysqli? [英] How to enable mysqli on XAMPP?
本文介绍了如何在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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文