Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:programming:php:error_handling [2007/08/01 13:58] – billh | docs:programming:php:error_handling [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Error Handling ====== | ====== Error Handling ====== | ||
Normally, when an error occurs in a PHP script, the error message is inserted into the script' | Normally, when an error occurs in a PHP script, the error message is inserted into the script' | ||
+ | |||
===== Production Server Configuration ===== | ===== Production Server Configuration ===== | ||
- | Make sure to modify the php.ini file as shown below. | + | Make sure to modify the php.ini file as shown below. |
+ | * Note: Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed. | ||
+ | < | ||
; Print out errors (as a part of the output). | ; Print out errors (as a part of the output). | ||
; you're strongly encouraged to turn this feature off, and use error logging | ; you're strongly encouraged to turn this feature off, and use error logging |