15,024
edits
m (→執行PHP時顯示原始碼的錯誤) |
|||
| Line 21: | Line 21: | ||
=== 執行PHP時顯示原始碼的錯誤 === | === 執行PHP時顯示原始碼的錯誤 === | ||
* 確認伺服器是否能執行 PHP。驗證: [http://php.net/manual/en/function.phpinfo.php phpinfo]/ [http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com] | * 確認伺服器是否能執行 PHP。驗證: [http://php.net/manual/en/function.phpinfo.php phpinfo]/ [http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com] | ||
* 如果 PHP 使用 short | * 如果 PHP 使用 short tag語法撰寫,但是沒有啟用 short_open_tag ,會造成顯示原始碼的錯誤。解法: php.ini 檔案 需要開啟 short_open_tag = Off -> On | ||
=== 錯誤訊息: ERROR: 00000:: === | === 錯誤訊息: ERROR: 00000:: === | ||