Reputation: 3122
I just discovered that PHP offers a function set_error_handler and was wondering if I could use this to have errors sent to me by mail rather displaying them on-page.
But would there be any point to using set_error_handler? Since E_ERROR won't be caught by that.
Or is there perhaps even a library that already does what I'm trying to do here?
Thanks!
Upvotes: 2
Views: 91
Reputation: 17992
http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/ this will help you.
Upvotes: 5