Summary


In this chapter we looked at the life cycle of an error in PHP. We examined the behavior of the default error handler and the ways in which it can be configured to suit the needs of most programs. Twelve distinct error levels were coveredfrom informative, to actionable, and fatal. We also took a look at the concept of user-defined error handlers and intentionally triggered errors.

Through the use of the concepts covered in this chapter, you should be able to design applications that successfully ignore expected errors and safely handle unexpected ones. With careful planning and a solid implementation, your users should never have to see another cryptic system-generated error message again.



PHP 5 Unleashed
PHP 5 Unleashed
ISBN: 067232511X
EAN: 2147483647
Year: 2004
Pages: 257

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net