Re: [phplib-users] proper way to run several instances of a phplib-app
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@dr...> - 2006-10-05 15:44:47
|
Marko, 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: base/ docs/ includes/ setup/ configs/ instance_1/ instance_2/ templates/ The database part of the config file looks like: define("_DATABASE", "database_name"); define("_DB_HOST", "localhost"); define("_DB_USER", "username"); define("_DB_PASS", "password"); The config file is symlinked to the includes directory and it is prepended from there before local.inc. --=20 Layne Weathers |