RE: [PHP] error handling
| From: | John W. Holmes | Date: | Sun, 27 Apr 2003 22:39:56 +0000 |
| Subject: | RE: [PHP] error handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145445@lists.php.net to get a copy of this message | ||
> i'm pretty good with php in general, but i've never really done much
with
> error handling. i have an application i'm developing for a company,
and
> they
> are testing it as i develop. every now and again they'll catch a bug
(like
> a
> php error that comes up) and they e-mail me about.
>
> what i'm wondering is, is there some way of just catching these errors
> automatically and adding them to a mysql database? that way the script
> could
> acknowledge its own errors and let the user know that it screwed up.
Read: http://www.php.net/manual/en/ref.errorfunc.php
and the related
functions.
It'll show you various ways you can do this.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/