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? ]- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php