簡體   English   中英

為什么缺少 mbstring 擴展?

[英]Why mbstring extension is missing?

我試圖用 line 增加 PHP 腳本的最大執行時間

ini_set('max_execution_time', 90000);

在“php.ini”文件中,但在我重新啟動服務器后,我在 PHPMyAdmin 中出現錯誤“mbstring 擴展名丟失”。 如果我用“ini_set”注釋行,PHPMyAdmin 工作正常。

那么,為什么 mbstring 擴展停止工作?

php.ini是一個配置文件,而不是一個腳本,所以你不能從中運行代碼。 當您嘗試用 PHP 源代碼填充它時,您會破壞文件,因此 PHP 以其編譯后的默認值開始,其中不包括 mbstring。

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM