php開啟mysqli擴(kuò)展的方法:首先打開php.ini配置文件;然后找到【extension=php_mysqli.dll】,并取消注釋;最后找到【extension_dir】,設(shè)置ext路徑即可。
具體步驟:
(推薦教程:php圖文教程)
首先打開php.ini配置文件,搜索php_mysqli.dll;
然后設(shè)置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. ;一定要適當(dāng)?shù)卦O(shè)置extension_dir指令。
(視頻教程推薦:php視頻教程)
最后在php.ini里面搜索extension_dir;
extension_dir = “G:/web/php7.1/ext”
檢查G:/web/php7.1/ext安裝路徑是否存在php_mysqli.dll(如果不存在應(yīng)該是PHP安裝包損壞,請重新下載)。
完成以上步驟就開啟成功了。