Skip to content

Instantly share code, notes, and snippets.

@admataz
Created October 6, 2010 22:25
Show Gist options
  • Save admataz/614233 to your computer and use it in GitHub Desktop.
Save admataz/614233 to your computer and use it in GitHub Desktop.
override settings file with another inc
<?
/**
* override global config settings with local settings - add to the bottom of the global config file
* Server Specfic variables from unversion included file - if it exists
*/
$abspath = dirname(__FILE__);
if(file_exists($abspath.'/settings.local.php')){
include $abspath.'/settings.local.php';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment