Re: Error catching script
| From: | Curt Zirzow | Date: | Wed, 08 Oct 2003 15:46:47 +0000 |
| Subject: | Re: Error catching script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165462@lists.php.net to get a copy of this message | ||
* Thus wrote James Johnson (james@primedna.net):
> Hello,
>
> Is there a way, on a hosted server, to prevent PHP errors from showing in a
> browser? Instead of "error whatever at line 107 in filename.php" to have it
> redirect to a "Sorry, please report this error page"
See:
set_error_handler();
http://php.net/set_error_handler
Curt
--
"My PHP key is worn out"
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/