# difference between absolute and relative path

shiv kedia
Greenhorn
Posts: 7
can anybody tell me the
difference between absolute and relative path

Christophe Verré
Sheriff
Posts: 14691
16
An absolute path may start with a slash '/', or 'http://...', etc...
It points to a specific location.

A relative path could be a file name "myfile.html" or a path relative to the current path, like "../myfile.html". It depends on the context (which makes it relative btw)

Plz have a look here :
Absolute and relative path

[ December 11, 2005: Message edited by: Satou kurinosuke ]
[ December 11, 2005: Message edited by: Satou kurinosuke ]

Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
A relative path is relative to where the requestor is: thus, two directories down.

An absolute path, OTOH, is objective, regardless of where the requestor is: for example, c:\index.jsp.

hth,
M
[ December 11, 2005: Message edited by: Max Habibi ]