Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Previous Level FilePath
- Larry R Harrison Jr
August 19, 2004, 3:26 pm
rate this thread
folder, how do I have it do that?
I have been trying for HOURS--yes, HOURS--to figure this out, look for a
reference on the Internet. I am totally stuck.
So if I am in the photo_pages/files and I need it to "back up" to
photo_pages (NOT under "files") and refer to a file there, what would the
path look like?
Re: Previous Level FilePath
Assuming a unixish file system or an emulation of one:
The current directory is referred to as ./ but is optional.
The parent directory, one level "up" the hierarchy, is ../
The parent of the parent directory is ../../
See the trend? The parent directory three levels up is ../../../
So, to hit the file index.html in the directory two levels up from the
current directory: ../../index.html (or maybe just ../../ if, as is
true in most cases, index.html is considered the default index
Patron Saint of Drunken Fornication