Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Torsten Foertsch
On Thu 15 Jan 2009, Foo JH wrote: > Is there a generic method so that given any uri as a parameter, the > library can do the math and return the physical path? If you look for the filename for $r->uri, that means the uri of the current request then $r->filename holds that after the map-to-storage

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Foo JH
Adam Prime wrote: > 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-

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Adam Prime
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.

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Foo JH
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 we

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Adam Prime
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 tha