Posted by Colin McKinnon on 05/20/06 17:57
scuniverse@gmail.com wrote:
> Any ideas how to make a email report of all the error messages?
>
> I've read on php.net how to do it the problem is that it sends a email
> for each error instead of sending a single email with all the errors.
>
If you implement your error handler in the same PHP thread as the code
throwing the error you'll never have visibility of fatal errors. A better
solution is to configure PHP to log its errors properly then read the log
file. If you don't have access to the config/logfile then your only option
is the error handler route - write your own error handler and set it to
send the file (and reset it) at intervals.
C.
Navigation:
[Reply to this message]
|