php開啟mysqli擴充功能的方法:先開啟php.ini設定檔;然後找到【extension=php_mysqli.dll】,並取消註解;最後找到【extension_dir】,設定ext路徑即可。
具體步驟:
(推薦教學:php圖文教學)
首先打開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影片教學)
最後在php.ini裡面搜尋extension_dir;
extension_dir = “G:/web/php7.1/ext”
檢查G:/web/php7.1/ext安裝路徑是否存在php_mysqli.dll(如果不存在應該是PHP安裝包損壞,請重新下載)。
完成以上步驟就開啟成功了。
以上是php如何開啟mysqli擴展的詳細內容。更多資訊請關注PHP中文網其他相關文章!