Troubleshooting of PHP errors: Difference between revisions
Jump to navigation
Jump to search
m (moved Php to PHP errors) |
No edit summary |
||
| Line 2: | Line 2: | ||
* 確認伺服器是否能執行 PHP。驗證: [http://php.net/manual/en/function.phpinfo.php phpinfo] | * 確認伺服器是否能執行 PHP。驗證: [http://php.net/manual/en/function.phpinfo.php phpinfo] | ||
* php.ini 檔案 需要開啟 short_open_tag = Off -> On | * php.ini 檔案 需要開啟 short_open_tag = Off -> On | ||
檔案操作有關 | |||
* 可否讀取或寫入:例如 imagejpeg($canvas, $filename, 100); 沒有顯示錯誤訊息,則需要檢查該檔案是否可以寫入 [http://php.net/manual/en/function.is-writable.php is_writable] | |||
[[Category:PHP]] [[Category:Programming]] | [[Category:PHP]] [[Category:Programming]] | ||
Revision as of 20:21, 16 December 2012
執行PHP時顯示原始碼的錯誤
- 確認伺服器是否能執行 PHP。驗證: phpinfo
- php.ini 檔案 需要開啟 short_open_tag = Off -> On
檔案操作有關
- 可否讀取或寫入:例如 imagejpeg($canvas, $filename, 100); 沒有顯示錯誤訊息,則需要檢查該檔案是否可以寫入 is_writable