perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Prime <>
Subject Re: [mp2] a way to map a uri to a physical path
Date Thu, 15 Jan 2009 05:26:04 GMT
Foo JH wrote:
> Adam Prime wrote:
>>> I'm trying to find the class/ method which allows me to get the physical
>>> path base on the uri. Something similar to Server.MapPath('/index.htm')
>>> in ASP.NET.
>>> Any advise is appreciated. Thanks.
>> $r->document_root . $r->uri
> Thanks for replying. In my case it's a wee bit more complicated (forgot
> to mention).
> Thing is, I have alias-ed a path (eg. alias /thisuri c:/wwwroot) in the
> web server, so $r->uri may not point to the right location.
> Is there a generic method so that given any uri as a parameter, the
> library can do the math and return the physical path?

$r->filename by the looks of things.


View raw message