LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] Alternative method of symlinking?

[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. 

What happens:
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 
variables.

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?


Donncha.


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
> why:
>
> 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 mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell