Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dev_names = array('localhost','.dev');
- if ($_SERVER['SERVER_NAME'] == 'localhost')
- {
- define('ENVIRONMENT', 'development');
- }
- else
- {
- define('ENVIRONMENT', 'production');
- }
- $_SERVER['SERVER_ADMIN'];
- // environment development check
- function __env_dev($check) {
- return substr($_SERVER['SERVER_ADMIN'], -(strlen($check))) === $check;
- }
- // false = production
- // true = development
- __env_dev("@dev.elop.loc");
- <?php // global config file which is checked into VCS
- $SETTING = "FOO";
- @include "config/local_settings.php"; // overrides go here
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement