Troubleshooting of PHP errors: Difference between revisions
Tag: wikieditor |
Tag: wikieditor |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
PHP 技術問題的排除與解決 | PHP 技術問題的排除與解決 | ||
This article categorizes various PHP issues into four main types: | |||
# '''File and Directory Issues''': These involve problems related to file handling and directory operations in PHP, such as file not found errors or issues with file permissions. | |||
# '''Configuration and Environment Issues''': This category covers issues arising from misconfigurations or environmental factors, including PHP settings, memory limits, and server configurations. | |||
# '''Error Handling and Debugging''': These issues pertain to errors and debugging challenges, such as syntax errors, runtime errors, and debugging messages. | |||
# '''General PHP Practices''': This encompasses best practices and general usage of PHP, including coding standards, command-line usage, and avoiding common pitfalls. | |||
== Troubleshooting steps of PHP errors == | == Troubleshooting steps of PHP errors == | ||
| Line 132: | Line 138: | ||
=== 不知道網站伺服器載入哪一個 php.ini 設定檔 === | === 不知道網站伺服器載入哪一個 php.ini 設定檔 === | ||
使用 console command<ref>[http://php.net/manual/en/features.commandline.options.php PHP: Options - Manual]</ref> | 使用 console command<ref>[http://php.net/manual/en/features.commandline.options.php PHP: Options - Manual]</ref> | ||
* 輸入命令 {{kbd | key = <nowiki>php --ini</nowiki>}} 或 {{kbd | key = <nowiki> | * 輸入命令 {{kbd | key = <nowiki>php --ini</nowiki>}} 或 {{kbd | key = <nowiki>/path/to/php --ini</nowiki>}} | ||
<pre> | <pre> | ||
> php --ini | > php --ini | ||