Contents of a sample include file.
//Settings for error handling environment
error_reporting(E_ALL);
ini_set('display_errors', '0');
ini_set('log_errors', '1');
//Create a directory outside of the document root
//Place an empty log file in the subdir
//and set the permissions of the file to chmod 0666.
ini_set('error_log', '/home/mydir/err_log/my-errors.log');
//Values used by error handling function
define('GENERIC_ERR_PAGE','index.php');
define('ADMIN_EMAIL_ADDR','yourName@yourAddress.com');
define('APP_NAME','My Web Site');
require_once('err_handler.inc');
set_error_handler('myErrHandler');