PHP Classes

File: ErrorLogging.php

Recommend this page to a friend!
  Classes of Nitesh Apte   Error Logging   ErrorLogging.php   Download  
File: ErrorLogging.php
Role: Configuration script
Content type: text/plain
Description: defined values
Class: Error Logging
Handle PHP fatal and non-fatal execution errors
Author: By
Last change: configuration
Date: 9 years ago
Size: 668 bytes
 

Contents

Class file image Download
<?php
if(!defined('DIRECT_ACCESS')) {
    die(
"Direct access is forbidden.");
}

define("MODE", "DEVELOPMENT");

/**
* Web root configuration
*/
define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT']);

define('APP_ERROR', E_ALL); // development mode
//define('APP_ERROR', E_ALL ^ E_NOTICE); // production mode
define('DEBUGGING', TRUE);
define('ADMIN_ERROR_MAIL', 'administrator@definemvc.com');
define('SEND_ERROR_MAIL', FALSE);
define('SEND_ERROR_FROM', 'errors@definemvc.com');
define('ERROR_LOGGING', TRUE);
define('ERROR_LOGGING_FILE_WEB', SITE_ROOT.'/logs/errors.log');
define('SITE_GENERIC_ERROR_MSG', '<h1>Something wrong, sorry. Error!</h1>');
?>