How to get error logs via email?

In codeigniter i want to receive error logs via email. For example, if any error message occurs on my website , i want to get an email about it.

How can i achieve it?

Answers


Create a custom Error Handler: http://php.net/manual/en/function.set-error-handler.php

This way you can do whatever you want with errors ... email, write to a log etc...


Need Your Help

Chrome browser not displaying background image?

css google-chrome background

I have created a background image of diagonal lines using CSS. Here is the code i am using for chrome:

Significance of exclamation marks in comments in ios

ios objective-c coding-style comments

I have seen programmers using comments like following format: