RES: [PHP] set_error_handler help

2008-05-05 Thread Thiago Pojda
Oh Yes this helped, thanks a lot :) I was missing the callback part ;) Regards, Thiago -Mensagem original- De: Jim Lucas [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 2 de maio de 2008 15:26 Para: Thiago Pojda Assunto: Re: [PHP] set_error_handler help Thiago Pojda wrote: Hi guys

[PHP] set_error_handler help

2008-05-02 Thread Thiago Pojda
Hi guys, I'm trying some custom error handling functions in order to get emails when fatal errors come up in my production website. The thing is, I went to phpclasses and there was a good one, but it was a class. I'm very slow today, so I could not figure out how to get it working. So, I

Re: [PHP] set_error_handler help

2008-05-02 Thread Richard Heyes
Is there any way to use a class to handle errors? I've tried some stuff like set_error_handler(Error_Handler::logError and such, but with no luck. It accepts a callback type, which is a pseudo type. Basically an array containg the object and the method to use. Eg. $obj = new

Re: [PHP] set_error_handler help

2008-05-02 Thread Craige Leeder
I beleive you can also do set_error_handler(array('classname', 'myMethod')); for static methods. - Craige On Fri, May 2, 2008 at 2:26 PM, Richard Heyes [EMAIL PROTECTED] wrote: Is there any way to use a class to handle errors? I've tried some stuff like