For example: when somebody subscribes for a mailings list for which he/ she already. · The default error handling in PHP is very simple. In the example below we will send an e- mail with an error message and end the script, if a specific. · Quick Tip: Email Error Logs with PHP.