576Part IIIAdvanced (Web server type) Features and TechniquesOther Methods of Error
576Part IIIAdvanced Features and TechniquesOther Methods of Error HandlingIf you re still using PHP4 or an older version, or are not comfortable dealing with classes andobjects, there are several error handling functions that have been available in PHP for sometime, including native PHP errors, defining an error handler, and triggering a user error. Native PHP errorsPHP generates three types of errors, depending on severity: .Notice:These errors are not serious and do not create a serious problem. By defaultthey are suppressed, unless the logging level is changed in the php.ini file. .Warning:Failed code has created an error, but does not terminate execution. Usuallythe error is displayed, but the script continues to run. (See Figure 31-1.) Figure 31-1:Native PHP Warning allows the page to finish rendering. .Fatal error:A serious error condition has rendered the script unable to run. A fatalerror terminates the script. (See Figure 31-2.)
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.