Re: [PHP] Re: poll: howto do informative error handling without the fatalities

[email protected] (Robert Cummings)
Newsgroups php.general
Organization InterJinn
Message-ID <[email protected]>
Ashley Sheridan wrote:
> On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote:
> 
>> Richard wrote:
>>> Hi,
>>>
>>>> I have extended the standard exception class to send me an email
>>>> whenever an exception occurs.
>>> I did that once. Once being the operative word... :-) Ended up with
>>> tens of thousands of emails one morning. At first I thought... "Wow,
>>> maybe my popularity has grown somewhat". But it hadn't.
>> I have something similar... a cron job that checks the error_log file 
>> every 10 minutes and sends me the contents if any exist. I also set a 
>> special header so I can be sure it's not spam and appropriately route it 
>> into my mail folder maze, Much less spammy :)
>>
>> Cheers,
>> Rob.
>> -- 
>> http://www.interjinn.com
>> Application and Templating Framework for PHP
>>
> 
> 
> Real developers don't have errors in their code; they're undocumented
> features ;)

Hmmmm... I've always gone with "a wise man learns from his mistakes".

Not that I'm saying I'm wise or anything... just seems a good goal to 
shoot for :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.