Advertisement
theitd

PHP ini_set DEBUG switch

Jan 20th, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2. ini_set('max_execution_time', 300); //300 seconds = 5 minutes
  3. define('DEBUG', false);
  4. error_reporting(E_ALL);
  5. ini_set('display_errors', DEBUG ? 'On' : 'Off');
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement