Re: Determine if path is absolute or relative
- From: "Anthony Jones" <Ant@xxxxxxxxxxxxxxxx>
- Date: Sat, 17 Nov 2007 22:28:49 -0000
"Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx> wrote in message
news:Xns99EB9A49A426eejj99@xxxxxxxxxxxxxxxxxx
Anthony Jones wrote on 17 nov 2007 in
microsoft.public.scripting.jscript:
"Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx> wrote in message[..]
news:Xns99EB92405B36Deejj99@xxxxxxxxxxxxxxxxxx
Anthony Jones wrote on 17 nov 2007 in
Is the following an absolute path or a relative one?
/mydir/subdur/
Relative to the present domain, or defined local drive or root.
There could be millions of /mydir/subdur/ directories on the web,
so how could that be an absolute address, Anthony?
Is the above sentance a question?
Umm...
[On a smaller scale, in a local surrounding without directories,
even a simple file name could be called an absolute path.]
Well you kind of answered your own question there. ;)
It was you having a Q, Anthony, not me.
Yeah I was confused, right? :P
Whether something is considered absolute or relative depends on the
size of the universe you are working in. Typically when developing a
Web Application I would call the path /mydir/subir/ an absolute path
because the universe I'm working in is entirely contained in a single
website.
You(!!) would, perhaps, when defining your own universe,
but you are wrong to generalize that.
In the real world generalisations are a common sense tool.
For example when specifying the value for the src of an img we need to
decide whether to specify it as "../images/thingy.gif" or
"/images/thingy.gif". Using the former is helpful if when the whole
application may be moved down into another folder whereas it breaks things
if the page using it is moved the the image stays where it is. The latter
has the reverse of the problem. We tend ask ourselves "should I use an
absolute path here or a relative one?". Pendantically this is incorrect but
its good enough for the current context.
--
Anthony Jones - MVP ASP/ASP.NET
.
- References:
- Determine if path is absolute or relative
- From: Giles
- Re: Determine if path is absolute or relative
- From: Evertjan.
- Re: Determine if path is absolute or relative
- From: Anthony Jones
- Re: Determine if path is absolute or relative
- From: Evertjan.
- Re: Determine if path is absolute or relative
- From: Anthony Jones
- Re: Determine if path is absolute or relative
- From: Evertjan.
- Determine if path is absolute or relative
- Prev by Date: Re: Determine if path is absolute or relative
- Next by Date: Re: Determine if path is absolute or relative
- Previous by thread: Re: Determine if path is absolute or relative
- Next by thread: Re: Determine if path is absolute or relative
- Index(es):
Relevant Pages
|