docs:programming:php:error_handling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:programming:php:error_handling [2007/08/01 13:58] billhdocs: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's output.  If the error is fatal, the script execution stops. Normally, when an error occurs in a PHP script, the error message is inserted into the script's output.  If the error is fatal, the script execution stops.
 +
  
 ===== Production Server Configuration ===== ===== Production Server Configuration =====
-Make sure to modify the php.ini file as shown below.  This will display a blank page without errors to the user if there is a problem.  You can enable logging to keep track of errors, which is done slightly below these lines.<code>+Make sure to modify the php.ini file as shown below.  This will display a blank page without errors to the user if there is a problem.  You can enable logging to keep track of errors, which is done slightly below these lines. 
 +  * 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. 
 +<code>
 ; Print out errors (as a part of the output).  For production web sites, ; Print out errors (as a part of the output).  For production web sites,
 ; 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
  • docs/programming/php/error_handling.1185998298.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)