There's a php way of doing it:
You have a global include directory. The global config file goes in there.
This could be the config file shipped with each app.
Each virtual host has a local include directory. This include directory has a
config file for that host. At the top of this file is an include directive to
include the global config file.
When you load up your application, the local include dir should be before the
global one in the include_path. Your app reads the local config file.
1. app loads local config file.
2. local config file loads global config file.
3. local variables are set by local config file, maybe overwriting global
If you don't want to modify your local config file with the include( 'global
config file' ); you could put 2 include() commands in your prepend file to
load the global then local files..
Is that helpful?
On Wednesday 18 December 2002 15:31, adam beecher wrote:
> Hi folks,
>> Is there anyway of symlinking files at a lower level than using ln? Here's
>> I run several instances of third-party software like vBulletin and Geeklog
> on my server, and I've been experimenting with centralising them for a
> while. The obvious and easiest way to do it is to hack the config file to
> read the hostname and deliver a different configuration for each site.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!