raptor wrote:
> 
> hi,
> 
> I was wondering is there any easy way so that I can set a global (our)
> variable to have different value on a per directory basis, what i mean :
> 
> i set the var somewhere, (per directory) !?!
> 
> our $SECTION = 'blah';
> 
> later all scripts at directory XXX can get the value of this var and it will
> be 'blah', for directory YYY i'm setting it to be different... etc...
> 

I don't think you can do exactly what you want, but you could
try perhaps:

<Directory XXX>
  PerlSetVar SomeConfig 1
</Directory>

<Directory YYY>
  PerlSetVar SomeConfig 2
</Directory>

and then initialize the config to a global in Script_OnStart ...
# global.asa
sub Script_OnStart {
  our $Section = $Server->Config('SomeConfig');
}

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to