Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
m
Line 24: Line 24:


=== 執行PHP時顯示原始碼的錯誤 ===
=== 執行PHP時顯示原始碼的錯誤 ===
* 確認伺服器是否能執行 PHP。驗證方式:  
* 確認伺服器是否能執行 PHP,不能的話,需要檢查 [http://php.net/manual/en/install.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],看是否可以顯示結果。或
** 網頁伺服器放置寫了 [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

Navigation menu