RE: [PHP-WIN] Better Error Trapping!

2003-04-04 Thread Svensson, B.A.T. (HKG)
> I'd love to hear other people's input on this and how they are attacking > this problem! Simply using defensive programming; e.g. never assume you get the resources you ask for, but also assume input you get is incorrect. Abstract pseudo code: TRY DO_EVENT IF DO_EVENT_SUCCESS CONTI

Re: [PHP-WIN] Better Error Trapping!

2003-04-03 Thread Stephen
My solution to the problem was to create an error reporting function. If something goes wrong during key parts of the code (eg database erorr, mail sending error, file reading error etc) then the error function is called. My error reporting function attempts to send me an email, and if the email is