Zend Certified Engineer

phpguru.org

Quality PHP, Javascript and C# code
Download RGraph: HTML5 canvas graph library... Home ~ Downloads ~ FAQs ~ Licensing
RSS Feed RSS Feed
Follow me on Twitter Follow me on Twitter

Articles

HTML5

Javascript

PHP5

PHP4




Bookmark with delicious Stumble! this site tweet this site Buzz this!

Custom error handlers


18th May 2008

[Direct URL for this article]

If anything they allow you to make your errors look pretty. Or maybe show a picture of a nekkid lady. That will sure draw attention to them. You might not want to do this on your live site though...

But what you can do is use the information to provide you with more information about the error. You could for example use the line number that you're given to a) Read in the file, and b) provide a small snapshot of the line in question and the surrounding few lines. Just a thought - might help in tracking down errors. This is a simple error function you can use to trigger errors. In the error function you could, for example, have it mail() yourself so that you know when errors occur, perhaps instead of showing the error to the user.



RGraph: HTML5 canvas graph library

Example graph made using RGraph

If you're interested in web development, then you may also be interested in RGraph: HTML5 canvas graph library. It uses HTML5 features to produce a wide variety of graph types. Because it moves the creation of graphs from the server to the client, it can significantly reduce the load on your server and your bandwidth usage.