You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stathy Touloumis <st...@edventions.com> on 2001/02/09 17:42:21 UTC

Accessing Global Configuration Directives

Is it possible to access a global configuration directive without using the
request object?

Thanks,


Re: Accessing Global Configuration Directives

Posted by sterling <st...@covalent.net>.
not sure quite what you're asking, but if you're looking for a global 
PerlSetVar/PerlAddVar type of thing - well, as of 1.21_01 i believe you
can do it - as long as you have access to Apache::Server.  Like in a child
init handler:



PerlAddVar foo bar
PerlAddVar foo bar2
PerlChildInitHandler myChildInitHandler::init

and then in the init handler do something like

sub init
{
    my $s = shift;
    my @values = $s->dir_config->get('foo');
}

@values will be [bar, bar2]

is that what you're lookin for?

sterling


On Fri, 9 Feb 2001, Stathy Touloumis wrote:

> Is it possible to access a global configuration directive without using the
> request object?
> 
> Thanks,
>