How can I fix relative paths to full paths?
For example, I might have the following variables:
$dir = "/web/john/summertrip/";
$filename = "index.html";
$linkedfile = "../help.html";
What I want to do with this is take $dir.$linkedfile ("/web/john/summertrip/../help.html") and fix the path to ("/web/john/help.html").
Any suggestions on the easiest way to do this?
Thanks.
In reply to Fixing paths by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |