php開啓mysqli擴充套件的方法:首先開啓php.ini組態檔;然後找到【extension=php_mysqli.dll】,並取消註釋;最後找到【extension_dir】,設定ext路徑即可。
具體步驟:
(推薦教學:)
首先開啓php.ini組態檔,搜尋php_mysqli.dll;
然後設定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. ;一定要適當地設定extension_dir指令。
(視訊教學推薦:)
最後在php.ini裏面搜尋extension_dir;
extension_dir = 「G:/web/php7.1/ext」
檢查G:/web/php7.1/ext安裝路徑是否存在php_mysqli.dll(如果不存在應該是PHP安裝包損壞,請重新下載)。
完成以上步驟就開啓成功了。
以上就是php如何開啓mysqli擴充套件的詳細內容,更多請關注php中文網其它相關文章!