Re: error handling
| From: | Erwin | Date: | Fri, 13 Sep 2002 06:56:43 +0000 |
| Subject: | Re: error handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116234@lists.php.net to get a copy of this message | ||
Mattia wrote:
> I'm writing a web app with php, and would like to do the following:
> when an error occures (a php/apache error or an application error)
> the error is logged to a log file. The user is displayed a page that
> says 500 internal server error, and nothig more. I have access to
> .htacces and no access to php.ini.
Take a look at
http://www.php.net/set_error_handler
That's the easiest way to create your own error_handler class!
HTH
Erwin