Re: Determine if path is absolute or relative



"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


.



Relevant Pages

  • Re: Determine if path is absolute or relative
    ... or defined local drive or root. ... so how could that be an absolute address, Anthony? ... even a simple file name could be called an absolute path.] ... size of the universe you are working in. ...
    (microsoft.public.scripting.jscript)
  • Re: Relative Movement vs. Moving through Space
    ... >> You will need to determine the absolute motions of A and B ... We have in view the proof of absolute motion, ... I see it as accelerated 'expanse' of the Universe ... In that total picture all parts merge--collapse--into the universal horizon, ...
    (sci.physics)
  • Re: Relative Movement vs. Moving through Space
    ... >> You will need to determine the absolute motions of A and B ... We have in view the proof of absolute motion, ... I see it as accelerated 'expanse' of the Universe ... In that total picture all parts merge--collapse--into the universal horizon, ...
    (sci.physics.relativity)
  • -----NOT SPAM, EXPOSITION OF ABSOLUTE LOGIC OF ANTHONY A. AIYA-OBA AND WISDO
    ... ICOSAHEDRON of Absolute Logic, and using TRIANGLES, Anthony A. Aiya- ... ABSOLUT can the faithful believers of Allah attain the Absolute Logic ... beliefs by outright theft of the gems of Islam - mathematics, ... TRIANGLES, this new revolution in "mathematics" surpasses even the ...
    (sci.math)
  • Understanding Our Universe in MMM
    ... Understanding Our Universe in MMM ... Theory of Absolute Space and Absolute Time ... knowledge of physics and mathematics at the college level and are ...
    (de.sci.physik)