# php.ini 設定 ## 官網 https://www.php.net/manual/zh/ini.php ### 因為設定太多了,所以只能慢慢把常用的補上 php.ini 使用 ; 當註解 ### 啟用 error_log 1.直接顯示錯誤(正式產品不應該開啟這個) ~~~ display_errors = On ~~~ 2.紀錄錯誤 ~~~ log_errors = On log_errors_max_len = 1024 error_log = php_errors.log //儲存log的檔案路徑 ~~~ ### 預設使用的 header 內容 ~~~ default_mimetype = "text/html" default_charset = "UTF-8" ~~~ ### 檔案上傳相關 ~~~ file_uploads = On upload_tmp_dir = upload_max_filesize = 2M max_file_uploads = 20 ~~~ ### 額外擴充模組 如:資料庫、curl、ssl... ~~~ extension=xxx ~~~
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.