I use config files for each separate instance of the app. The config
file defines several constants that are then used throughout the
app. The directory structure looks like:
The database part of the config file looks like:
The config file is symlinked to the includes directory and it is
prepended from there before local.inc.