The trouble is I can't seem to get it to work in both the root directory and a deep directory. In the root directory it puts ./../, how can I remove the ../ if it's in the root directory?
By the way this is all relative paths i.e. root/folder1/folder2
Question
Syntax_Error
My current problem is that I want to be able to move my web pages about without modification and for them to still work.
At the moment I have this script:
The trouble is I can't seem to get it to work in both the root directory and a deep directory. In the root directory it puts ./../, how can I remove the ../ if it's in the root directory?
By the way this is all relative paths i.e. root/folder1/folder2
Thanks!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts