Capturing Errors, Notices and store them all
Moderator: General Moderators
Capturing Errors, Notices and store them all
Im looking for something like error_log() but instead of displaying the Notices, Warnings, Errors, it should all be directly written to the file/db.
I dont want to do
if (...)
error_log();
I want all errors, notices and warnings to be directly output to file/db without showing them on screen.
Also, I cannot change php.ini values (web host).
Any way ?
Thanks
I dont want to do
if (...)
error_log();
I want all errors, notices and warnings to be directly output to file/db without showing them on screen.
Also, I cannot change php.ini values (web host).
Any way ?
Thanks
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Sounds like you havn't read
http://ca3.php.net/errorfunc, http://ca3.php.net/set_error_handler
and its helpful user comments
http://ca3.php.net/errorfunc, http://ca3.php.net/set_error_handler
and its helpful user comments
Last edited by John Cartwright on Mon Apr 04, 2005 10:16 pm, edited 1 time in total.
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
Not necessarily, but PERL seems like the best thing for the job (only ever written a couple of filters using it (Excel import/export) but found it easy to learn, even if not to master). Others where I work are more "expert" and they already filter log files with it.n00b Saibot wrote: I see CoderGoblin has took to liking Perl