Guest User

Untitled

a guest
Jun 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. if (defined('ENVIRONMENT'))
  2. {
  3.     switch (ENVIRONMENT)
  4.     {
  5.         case 'development':
  6.             ini_set('display_errors', 1);
  7.             error_reporting(E_ALL);
  8.         break;
  9.    
  10.         case 'testing':
  11.         case 'production':
  12.             error_reporting(0);
  13.         break;
  14.  
  15.         default:
  16.             exit('The application environment is not set correctly.');
  17.     }
  18. }
Add Comment
Please, Sign In to add comment