[PHP] best practices in error handling in PHP

2008-03-12 Thread It Maq
Hi, I want to know what is the best solution for handling errors. After reading some documents dealing with the subject, i have three options: * Using a class for error handling * Using PEAR error object * Using try and catch exceptions The error handling i want to implement will be done in a bi

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread Richard Heyes
It Maq wrote: I want to know what is the best solution for handling errors. After reading some documents dealing with the subject, i have three options: > * Using a class for error handling No point IMO when you could use either the below two. > * Using PEAR error object I wouldn't advise

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread Christoph Boget
> I want to know what is the best solution for handling errors. After reading > some > documents dealing with the subject, i have three options: > * Using a class for error handling > * Using PEAR error object > * Using try and catch exceptions > The error handling i want to implement will be

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread It Maq
7 AM Subject: Re: [PHP] best practices in error handling in PHP > I want to know what is the best solution for handling errors. After reading > some > documents dealing with the subject, i have three options: > * Using a class for error handling > * Using PEAR error obje

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread Zoltán Németh
2008. 03. 12, szerda keltezéssel 07.18-kor It Maq ezt írta: > Hi, > > I want to know what is the best solution for handling errors. After reading > some documents dealing with the subject, i have three options: > * Using a class for error handling > * Using PEAR error object > * Using try and cat

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread It Maq
PROTECTED]> Cc: php-general@lists.php.net Sent: Wednesday, March 12, 2008 10:31:07 AM Subject: Re: [PHP] best practices in error handling in PHP > I want to know what is the best solution for handling errors. > After reading some > documents dealing w