15,024
edits
m (→檔案操作有關) |
m (→執行PHP時顯示原始碼的錯誤) |
||
| Line 20: | Line 20: | ||
=== 執行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 使用 short tag語法撰寫,但是沒有啟用 short_open_tag ,會造成顯示原始碼的錯誤。解法: php.ini 檔案 需要開啟 short_open_tag = Off -> On | * 如果 PHP 使用 short tag語法撰寫,但是沒有啟用 short_open_tag ,會造成顯示原始碼的錯誤。解法: php.ini 檔案 需要開啟 short_open_tag = Off -> On | ||