Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
m
→‎執行PHP時顯示原始碼的錯誤: add [http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com]
m (→‎執行PHP時顯示原始碼的錯誤: add [http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com])
Line 28: Line 28:
== 錯誤訊息 ==
== 錯誤訊息 ==
=== 執行PHP時顯示原始碼的錯誤 ===
=== 執行PHP時顯示原始碼的錯誤 ===
* 確認伺服器是否能執行 PHP。驗證: [http://php.net/manual/en/function.phpinfo.php phpinfo]
* 確認伺服器是否能執行 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 tag語法撰寫,則 php.ini 檔案 需要開啟 short_open_tag = Off -> On
* 如果 PHP 使用 short tag語法撰寫,則 php.ini 檔案 需要開啟 short_open_tag = Off -> On


Navigation menu