Convert URL to file system path
<p>is there a way to convert a web URL in the absolute file system path (independent from the OS, Windows or Linux)? 
example: I have this url /images/test.jpg (http://www.example.com/images/test.jpg)</p>

<p>I need to retrieve from "/images/test.jpg"
 "c:\path\to\webroot\images\test.jpg" on windows
and "/var/path/to/webroot/images/test.jpg" on linux</p>

<p>Thanks</p>
