本文介紹了如何在 XAMPP 上啟用 mysqli?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
通過查看整個(gè) Internet 上的建議,我嘗試將所有查詢轉(zhuǎn)換為 mysqli.
By seeing suggestions throughout the Internet I tried to convert all my queries to mysqli.
但是 mysqli 在我的 XAMPP 中不起作用.我檢查了我的 PHP 文件夾,發(fā)現(xiàn)有一個(gè) 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 來加載它?如果沒有,請(qǐng)嘗試在 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
這篇關(guān)于如何在 XAMPP 上啟用 mysqli?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!