[CLUG] Alternative method of symlinking?
Donncha O Caoimh
donncha.ocaoimh at tradesignals.com
Wed Dec 18 15:41:41 GMT 2002
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.
More information about the Cork