# phpmyadmin ###### tags: `server` [TOC] ## :triangular_flag_on_post:上傳文件限制 ### php.ini - `post_max_size` 表單POST給PHP的容量上限。預設 `post_max_size = 8M` - `upload_max_filesize` 單次上傳檔案的容量上限。預設 `upload_max_filesize = 2M` - `max_execution_time` 執行時間上限(秒) - `max_input_time` 接受資料上限(秒) - `memory_limit` 頁面佔用的記憶體,**必須比post和upload的值還大** - `default_socket_timeout` Socket無回應斷線時間(秒) - `mysql.connect_timeout` 無回應斷線時間(秒)。預設 `60` ,若為`-1` 表示不斷線一直等 ### phpmyadmin config - `$cfg[‘ExecTimeLimit’]`,預設 `300` ,若為 `0` 則無時間限制 ### import.php - `$memory_limit`,預設 `$memory_limit = 2 * 1024 * 1024;`。若為空則預設記憶體大小限制為2M,若無限制則記憶體大小限制為10M - `post_max_size` 表單POST給PHP的最大值 - `upload_max_filesize` 上傳檔案的最大值
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up