RE: [PHP] Error capturing
| From: | Svein Larsen | Date: | Wed, 04 Jun 2003 18:00:12 +0000 |
| Subject: | RE: [PHP] Error capturing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150223@lists.php.net to get a copy of this message | ||
Yes, set_error_handler work for "soft" errors.
But parse-errors doesnt get catched by the errorhandler.
- Sveni
> -----Original Message-----
> From: Jason Wong [mailto:php-general@gremlins.biz]
> Sent: Wednesday, June 04, 2003 19:43
> To: php-general@lists.php.net
> Subject: Re: [PHP] Error capturing
>
>
> On Wednesday 04 June 2003 18:16, Svein Larsen wrote:
>
> > Anybody got a good solution for capturing errors in php
> scripts? I can
> > catch the errors by logging them to a log file (log_errors in
> > php.ini) My problem is that i'm running a lot of sites on my server
> > and i need to know wich site generate the error and cant
> find any way
> > to get this in the log file. I'm thinking og editing the
> php-source to
> > get this done but i hope there is a simpler solution.
>
> set_error_handler(), and maybe auto_prepend_file in php.ini
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications
> Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
>
> ------------------------------------------
> /*
> When a man is tired of London, he is tired of life.
> -- Samuel Johnson
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>