Logging fatal/parse errors in PHP5

Posted by PeterBelm on Stack Overflow See other posts from Stack Overflow or by PeterBelm
Published on 2010-05-05T11:24:48Z Indexed on 2010/05/05 11:28 UTC
Read the original article Hit count: 214

I'm writing an error logging service that will be integrated into websites running on my server, that will email me error batches, etc.

So I've been trying to find out if there's a way to handle fatal and parse errors, however not using the tricks to handle it in PHP code (output buffer, shutdown function). I'm quite happy to write some C code or something to handle it outside of my PHP code. I would also like to issue a redirect if possible (my sites use output buffering so there shouldn't be any headers sent).

I'm pretty sure this could be done with a PHP module, but I've never written one and have no idea where to start.

© Stack Overflow or respective owner

Related posts about php5

Related posts about error-logging