by kunal_it » Wed Oct 16, 2002 11:22 am
the reason y i want to convert a path with ".." is that I am sure that the relative path isn't going to change..however, there might be some changes if I use absoulte path using document root..
for eg..
say i m in
/dir1/dir2/dir3/test.php, where dir1 is in the doc. root..
now, its possible that later on, the directory structure may look like
/new_dir/dir1/dir2/dir3/test.php, in which case the paths that I may be using relative to document root may not hold valid.
however, if I use a path relative to test.php, then I am not affected by directory structure changes outside dir1..
so, ultimately, I want to some how get the absolute path using the relative path.
hope that clarifies the purpose.
thanks,
Kunal