15,024
edits
m (→references) |
m (→執行PHP時顯示原始碼的錯誤) |
||
| Line 25: | Line 25: | ||
=== 執行PHP時顯示原始碼的錯誤 === | === 執行PHP時顯示原始碼的錯誤 === | ||
* 確認伺服器是否能執行 PHP。驗證方式: | * 確認伺服器是否能執行 PHP。驗證方式: | ||
** | ** 網頁伺服器放置寫了 [http://php.net/manual/en/function.phpinfo.php phpinfo] 的 PHP 檔案 / [http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com],看是否可以顯示結果。或 | ||
** {{kbd | key = <nowiki>php -v</nowiki>}} 如果可以顯示 PHP 版本,代表有安裝 PHP | ** {{kbd | key = <nowiki>php -v</nowiki>}} 如果可以顯示 PHP 版本,代表有安裝 PHP | ||
* 如果 PHP 使用 short tag 語法撰寫,但是沒有啟用 short_open_tag ,會造成顯示原始碼的錯誤。驗證方式: | * 如果 PHP 使用 short tag 語法撰寫,但是沒有啟用 short_open_tag ,會造成顯示原始碼的錯誤。驗證方式: | ||