RE: Really basic question - including code

by "GAY, MARK" <MGAY(at)diavac.com>

 Date:  Mon, 27 Dec 1999 12:54:30 -0600
 To:  "'Ted Temer'" <temer(at)c-zone.net>,
hwg-basics(at)mail.hwg.org
  todo: View Thread, Original
I think that the "virtual" keyword is used to include files that are
relative to the path of the virtual root directory of the Web server.  I've
heard that most web designers use "virtual" to implement global policies and
subroutines that are common to most or all of your Web apps and/or pages.
The "file" keyword is used to include files that are relative to the path of
the current file, if I remember correctly, and is used to implement policies
and subroutines unique to the application/page being developed.

Uh...don't quote me on that, however...  :)

-----Original Message-----
From: Ted Temer [mailto:temer(at)c-zone.net]
Sent: Friday, December 24, 1999 1:06 PM
To: hwg-basics(at)mail.hwg.org
Subject: Re: Really basic question - including code


Hugh:

>Question: What's the difference between using "#include file="
and "#include
>virtual="?   Do they perform the same function?

I'm no expert but I "think" I read somewhere that "virtual" tells
the server to look for the files in some directory, other that
the one the page is in. Otherwise they are the same. I have
always used "#include virtual= filename.ext" and it seems to work
no mater where the file is.

Though this satisfies my simple mind, I must admit to a nagging
fear that there just might be more to it than this. Some of the
others may be able to elaborate.

I went looking for: http://www.coffeebeanshop.com/beantest.shtml
but got a File Not Found message. I suspect you may have deleted
it before I got to the computer today. (Lots going on.) Your
original page looks just fine and I suspect the page with the
include files will be identical.

Best to All and I hope all of you have more snow than we do in
Redding. Santa gave us a big, lingering High Pressure Area for
Xmas.
Ted Temer
Temercraft Designs Redding, CA
temer(at)c-zone.net
http://www.temercraft.com
http://www.newsredding.com/

P.S. Sorry to see Dead Brain Cells trademarked. And here I always
thought it was generic to the various web breeds.


>Thanks, Ted.
>
>Dead Brain Cells(tm) kept me from remembering the structure.
I've got it
>running and you can see it at:
>http://www.coffeebeanshop.com/beantest.shtml
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.