Custom error handlers
18th May 2008
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.