To die() or not to die()

Dieser Kommentar von http://www.php.net/ triffts ganz gut.

It is poor design to rely on die() for error handling in a web site because it results in an ugly experience for site users: a broken page and – if they’re lucky – an error message that is no help to them at all. As far as they are concerned, when the page breaks, the whole site might as well be broken.

If you ever want the public to use your site, always design it to handle errors in a way that will allow them to continue using it if possible. If it’s not possible and the site really is broken, make sure that you find out so that you can fix it. die() by itself won’t do either.

If a supermarket freezer breaks down, a customer who wanted to buy a tub of ice cream doesn’t expect to be kicked out of the building.