You are Visitor # since June 13 2000 |
|
HTML Basics: Server Side Includes (SSI)
Want to add the contents of another document into a current page you are developing without cutting-n-pasting or retyping the information?
To do this, you need to use what are called " Server Side Includes" or SSI.
Server Side includes are scripts, or mini programs, which are located on an Internet Service Provider's (ISP) webserver, that allow ISPs to add or extend functions to the webserver in order to give webpage designers some more "goodies" to add on the pages.
The use of this script will allow you to "include" information that is in another text or HTML file to the current file you are working on without cutting-n-pasting or retyping the information.
include
SYNTAX: <!--#include file="pathname"-->
<!--#include virtual="URLpath"-->
Inserting a text file with the file parameter:
Replace the text in-between the quotes of the file tag with the path or direct location of the text file you wish to have inserted
(!! this file must be a text document !!). This path must be exact to the file or you will recieve an error from the webserver. You must list all folders to the file.
Example:
The latest mainframe-generated financial summary is shown below
:
<pre>
<!--#include file="MFRPT\FINSUM.TXT"-->
<pre>
Inserting a URL with the virtual parameter:
Replace the text in-between the quotes of the virtual tag
Example:
need some more help? Check out the information below:
<pre>
<!--#include virtual="/user/~joe/help.html"-->
<pre>
WARNING
Include only HTML or plain text documents. Do not Attempt to use this feature to insert pictures or other multimedia data.
|
|