On Fri, 25 Jul 2003 18:00:20 -0400, "Paul Baker" <ask> wrote:
Please help me complete the definitions!! /L
Bear with me, I must clear this out!
Please correct my guessings..
When using FILE, you specify a file name, and it can be relative to the
current ASP file.
Is the '#include FILE=' form always using regular Path-notation (like in
DOS,Windows '\'), and never URL-notation?
Can the 'FILE='-form also use an absolute Path, and if so, can it then refer to
a physical directory outside the WebSite (=webroot and subdirectories)?
When using VIRTUAL, you specify something similar to a URL, but it can be
relative to the current location.
so, the '#include VIRTUAL='-form always uses the URL-notation ('/').
If it is a realtive Path, than it is relative the ASP-file in which the include
directive is used.
Can you use the 'VIRTUAL='-form to ever refer to a file outside the default
Website?
The directory structure (file system) and the vitual directory structure
(URL) are often the same, but need not be. There are various options, the
most significant of which is virtual directories, which allow them to be
different.
How do you 'construct' a virtual directory structure?
To begin with there are
1) the server's local file system (C:\, D:\ etc)
2) the WebSite (Webroot and subdirectories) (which in a way is a 'virtual'
directory, where the corresponding physical directory often
isC:\inetpub\wwwroot\MyWebSite\).
Also you may have many WebSites on the server.
3) any directory on internet referred to by an URL.
The focus is on our WebSite. Is the WebRoot in itself a Virtual directory, or is
a Virtual directory always something that is added to your Website, thus
including a directory from somewhere outside the original Website?
If so, is this Virtual Directory configured somewhere, or does it appear just
when you in some way manages to refer to it?
I tend to use FILE unless the file I want is not closely relative to the
current ASP. If it is not in the same folder or a parent folder, I usually
use VIRTUAL, because the alternative would be to use a complicated relative
file path or a full path C:\inetpub\wwwroot\... which is a really bad idea,
as it hard-codes the root folder.
So you use the 'VIRTUAL='-form to be able to give a relative path.
'relative to the current location' you say above.
But so does the 'FILE='-form (relative the ASP-file).
The difference so far is the RegularPath/URL-notation.
Could you clearify this a bit more?
This is a simple concept that I am having a hard time explaining. If what
you're thinking is not simple, you're not understanding it right.
I you have a hard time, imagine what I have..