Re: Really basic question - including code

by "Ted Temer" <temer(at)c-zone.net>

 Date:  Thu, 23 Dec 1999 15:37:04 -0800
 To:  <hwg-basics(at)mail.hwg.org>
  todo: View Thread, Original
Hugh:

Unless I've missed something, it sounds like you are thinking of
SSI, Server Side Includes.

If so, you simply code the two something like this:

<body>

<!--#include virtual="topcode.txt"-->

 <more code for page>

<!--#include virtual="bottomcode.txt"-->

</body>
</html>


Of course, the .txt part can be almost any type of file you wish.
The files are put in the same directory as the pages unless you
include a "path" to them.

You are no doubt, already aware of the several SSI problems
relating to some servers that require the page containing such
code to be saved as .shtml (or on NT it is often .stm). (Hosts
can easily eliminate this problem but many are often reluctant to
do so.)

Best wishes
Ted Temer
Temercraft Designs Redding, CA
temer(at)c-zone.net
http://www.temercraft.com
http://www.newsredding.com/



>Greetings all,
>
>I've got a brain cramp and can't remember how to do this - and
the reference
>book is loaned out.  So, here it goes:
>
>I'd like to change some pages so my main page has:
><html>
><head>
><body>
>---------- load and insert some standard 'top page' code here
from another
>file......
><more code for page>
>---------- load and insert some standard 'bottom page' code here
from
>another file......
></body>
></html>
>
>Please remind me how.
>Thanks,
>Hugh
>hblair(at)bigfoot.com
>
>

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