perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Prime <adam.pr...@utoronto.ca>
Subject Re: [mp2] a way to map a uri to a physical path
Date Thu, 15 Jan 2009 04:15:49 GMT
Foo JH wrote:
> Hi all,
> 
> 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

but that won't actually tell you if that file exists, it's just where
you'd probably expect that file to reside.  Not having any idea how that
ASP.NET function works, i don't know if that really answers your
question or not.

Adam

Mime
View raw message