PHP: sending emails whenever an error occurs

Problem PHP, by default, displays an error directly in the user’s browser. Something like this is common around the web: Notice: Undefined variable: name in /abc/public_html/index.php on line 29 This is not so useful because if someone else caused this error you have no way of knowing about it and because potentially sensitive information about [...]