Hi Kip,
Thanks - exactly what I was looking for.

James 

> -----Original Message-----
> From: Kip Hampton [mailto:[EMAIL PROTECTED] 
> Sent: 22 December 2003 17:48
> To: James Lavery
> Cc: AxKit Users
> Subject: Re: Getting Apache documentroot from within a 
> TaglibHelper-based Taglib
> 
> James Lavery wrote:
> > Hi all,
> > In my Taglib, which I've written using TaglibHelper, I need 
> to create 
> > some temporary files under my documentroot, and then 
> reference them in 
> > my final HTML.
> >  
> > In order to do this elegantly, I need to be able to get the 
> location 
> > of documentroot at run time.  Can I get this through 
> TaglibHelper, or 
> > do I need use a different mechanism?
> 
> The Apache object ($r) is available from within your taglib via:
> 
> AxKit::Apache->request();
> 
> so, you'd just do:
> 
> my $r = AxKit::Apache->request();
> my $docroot = $r->document_root;
> 
> -kip
> 
> 

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

Reply via email to