Re: Re: Writing out errors to a file
| From: | Adam Richardson | Date: | Fri, 04 Nov 2011 02:03:59 +0000 |
| Subject: | Re: Re: Writing out errors to a file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315588@lists.php.net to get a copy of this message | ||
On Thu, Nov 3, 2011 at 9:04 PM, Jim Giner <jim.giner@albanyhandball.com>wrote:
> Try reading the manual on "set_error_handler". I've never needed to do
> this
> kind of thing, but this sure looks like something that could do it.
> Basically, I'm imagining that it would open a file handle on some text file
> in some folder, then append a write of mysql_error() to that file and
> probably the line number and such and then close it.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
The combination of set_error_handler() and within the handler using
error_log() works very well.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com