Re: error handling
| From: | Derick Rethans | Date: | Mon, 18 Nov 2002 10:18:47 +0000 |
| Subject: | Re: error handling | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91236@lists.php.net to get a copy of this message | ||
On Mon, 18 Nov 2002, John Bradford wrote:
> > I think in a modern web application the error handling function should do
> > the following:
> > in case of error (any: parse error, internal application error,....)
> >
> > 1. a message should be shown to the user sayng that an error has occured
> > like "an internal error has occured. the webmaster has been notified via
> > email"
> > 2. a more detailed message should be logged in a generic system ErrorLog, or
> > notified via email or fax, or telephone, or SMS. Depending on the severity
> > of the error (warning, fatal,...)
>
> On a similar note, I posted a patch a few days ago which was intended
> for development environments - it makes error messages appear in a
> clear 'window' in the middle of the browser window, so that you don't
> have to hunt around in the output of the program to find it. I've
> attached it again, in case you're insterested.
I don't like this patch because it doesn't add anything to PHP itself.
You can easily do this with the error_prepend_string and
error_append_string configuration settings.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-