Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
提供意見
php.ini 檔案
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以將 php.ini 檔案納入 App Engine 應用程式。可讓您用來自訂 PHP 解譯器指令的行為。
請參閱預設 php.ini 設定 的範例。
使用自訂 php.ini 檔案
將 php.ini 檔案放在應用程式基礎目錄中,也就是 app.yaml 檔案所在的目錄。系統會在 PHP 解譯器初始化時載入這個檔案,並且之後才會執行應用程式的程式碼。
此檔案所遵循的語法與其他 .ini 檔案 的語法相同。簡單的範例如下:
; This is a simple php.ini file on App Engine
; It enables output buffering for all requests by overriding the
; default setting of the PHP interpreter.
output_buffering = "On"
核心指令清單 (連同可變更模式值) 已發佈至 php.net 。
您可覆寫具備下列其中一個可變更模式值的任何 PHP 指令:
PHP_INI_SYSTEM
PHP_INI_ALL
PHP_INI_PERDIR
您可以使用 extension 指令,啟用一組可動態載入的擴充功能 。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-06-18 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-06-18 (世界標準時間)。"],[],[]]