Page 2 of 2

Re: My First PHP Class

Posted: Wed Jul 30, 2008 2:19 pm
by Christopher
It is better not to just die, but generate an error page that helps the user resolve the problem.

Re: My First PHP Class

Posted: Wed Jul 30, 2008 6:33 pm
by Eran
Using the die() command to handle errors is a very bad practice. It leaves no room for error handling

Re: My First PHP Class

Posted: Thu Jul 31, 2008 2:33 pm
by matthewcl375
Oh i only recommended it as in the book that i learned PHP from it uses it a lot.

Thanks for the advice :D

Re: My First PHP Class

Posted: Tue Sep 16, 2008 6:37 pm
by thinsoldier
pytrin wrote:Using the die() command to handle errors is a very bad practice. It leaves no room for error handling
What about throwing exceptions?