Hi there-
Complete newbie with (I think) a simple question here:
I have quite a few sites on the same server. Each of them has a config file which (amongst other things) contains global variables I use throughout the site(s).
Some of the global variables are the same for every site, and some are specific to that site only, so a sites config file will contain an array something like this:
$global_vars = array(
"every_site_var1" => "something used on every site",
"every_site_var2" => "something else used on every site",
"every_site_var3" => "another thing used on every site",
...
"local_var1" => "something used only on this site",
"local_var2" => "something else used only on this site"
);
It's becoming tedious to alter the "every_site_var(s)" in every config file when I want to add something new across al sites, and I'd like to have something like this:
$global_vars = array(
include ('every_site_var.inc')
...
"local_var1" => "something used only on this site",
"local_var2" => "something else used only on this site"
);
...that way I only need amend one file (every_site_var.inc).
I've tried various syntax forms and ca't get it ot work.
Any ideas? Is this even possible?
Thanks!
Les