Discover the best of the web!
Learn more about Digg by taking the tour.
PHP4/MySQL Error Handling with an Observer design pattern
mesoimpact.com — The intent of this article is to demonstrate the principles of implementing a simple Observer pattern to handle reporting for both PHP and MySQL generated non-fatal errors. This allows the application developer the ability to attach (or detach) as many or few clients as desired.
- 14 diggs
- digg it
- jcall, on 10/12/2007, -0/+1Have you thought about submitting this to devshed?
- Chemo, on 10/12/2007, -0/+0jcall...one big internet but the same faces :-) I have an authors account on the DevShed network and have submitted it for publishing. However, this is a basic entry level introduction to the Observer pattern so is pretty low on the pole. I created it a while back when coding the framework for a eCommerce application (surpise!). Not only do I use the pattern to handle error catching (and handling) as in the mini article but also use it as the core to how the application handles actions. It'll be more clear when I publish the mini article on using the pattern to handle GET actions.
- jetblacktib, on 10/12/2007, -0/+0Awesome!
- willlangford, on 10/12/2007, -0/+1hella sweet!
