Apache->server will work - but it will always return the base server (so
if you are using virtual hosts it will return a different server from
$r->server).  As long as you are not using virtual hosts you should be ok.

sterling


On Mon, 12 Feb 2001, Stathy Touloumis wrote:

> Kinda, need to access these directives outside of a handler.  Will see how
> well it works creating a server object through the server method directly
> (Apache->server).
> 
> Thanks,
> 
> > 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?
> 

Reply via email to