Re: mapping URI to filename.

2008-08-18 Thread Anthony R Fletcher
Thanks but that only works for the current request. I was looking for a way of translating some other URI to a pathname on the same server. Anthony On 18 Aug 2008 at 15:26:53, Geoffrey Young wrote: > > > Anthony R Fletcher wrote: > > Using mod_perl2, is there a way of mapping a

Re: mapping URI to filename.

2008-08-18 Thread Geoffrey Young
Anthony R Fletcher wrote: > Using mod_perl2, is there a way of mapping a URI to a filename or > directory. > > I can get the root directory for the server and I can append the URI to > it but this doesn't taking to account aliases, UserDir directives etc.. > > Any suggestions? $r->filename()

What's the Apache 1.x equivalent to Apache2::SubProcess->spawn_proc_prog()?

2008-08-18 Thread Berg, Eric
I'm working on a module that will run external programs, doing the right thing considering params and context. So, for instance, if we just request that this thing run an external script, and we're running the script as a CGI under mod_perl2, then it'll run it unders $r->spawn_proc_prog(), otherwi