Mecha CMS

Code snippet collection for developers.

Automatic Debug Mode

Author: Taufik Nurrohman · 4 Views

Tweet

Activate debug mode if offline, deactivate if online.

// Set to `true` if offline, `false` if online!
define('DEBUG', $_SERVER['HTTP_HOST'] === 'localhost');

0 Comments

No comments yet.