How can I configure what happens when a warning or fatal error occurs in a PHP script? (i.e: kill the script and display a custom error message)