Skip to content

Instantly share code, notes, and snippets.

@melissacabral
Created February 25, 2021 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melissacabral/862fe1739ad1adabae8e075e76183493 to your computer and use it in GitHub Desktop.
Save melissacabral/862fe1739ad1adabae8e075e76183493 to your computer and use it in GitHub Desktop.
basic config file for WIP400 class
<?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