PDA

View Full Version : path


joonstar
04-18-2003, 11:03 AM
(1) /image/image1.gif

(2) image/image1.gif

(3) ./image/image1.gif


(1) is absolute path

(2) is relative path

What path is (3)?


As I check, it seems relative path.
Then, what is the difference between (2) and (3) in using.

dysfunctionGazz
04-18-2003, 01:39 PM
i do it like this for simplicity...

images/pic.jpg
goes down one directory into images subdirectory and opens file

../main/photos/mypic.jpg
goes up a directory and then down into photos, which is at the same level as where ur file is

otherwise i do a totally absolute URL like
http://www.suicidenotesmusic.com/homewrecker/index.html

sage45
04-18-2003, 03:56 PM
Actually the difference between them is this:

/image/image1.gif = path relative to root

image/image1.gif = path relative to current directory

./image/image1.gif = path relative to current directory


An absolute path would actually be defined as such:

http://anysite.internet.com/image/image1.gif

It just all gets down to directory/file structure basics

-sage-