Created
February 25, 2021 15:28
-
-
Save melissacabral/862fe1739ad1adabae8e075e76183493 to your computer and use it in GitHub Desktop.
basic config file for WIP400 class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* configure error display (production vs development) | |
*/ | |
/* ------------------configure these variables----------------- */ | |
define('DEBUG_MODE', 0); | |
define('ROOT_DIR', '' ); | |
/* -------------------------stop editing------------------------ */ | |
/* DISPLAY ERRORS | |
On a development server | |
error_reporting should be set to E_ALL value; | |
display_errors should be set to 1 | |
log_errors could be set to 1 | |
On a production server | |
error_reporting should be set to E_ALL value; | |
display_errors should be set to 0 | |
log_errors should be set to 1 | |
*/ | |
if(DEBUG_MODE){ | |
//development | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('log_errors', 1); | |
}else{ | |
//production | |
ini_set('display_errors', 0); | |
ini_set('log_errors', 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment