Use of the "enviromental variables

<!--#echo var="DOCUMENT_URI" -->
  • The url is

    <!--#echo var="DATE_LOCAL" -->

  • The local time is

    <!--#include virtual="fic.html" --> which outputs the web page fic.html:


    Server Instructions

    Server instructions are ways to enhance a web page by invoking the capabilities of the Web server.

    Server Side Includes

    The most common server instructions are formally called Server Side Includes, or SSIs, A popular example of an SSI is the visitor counter, which displays the number of visitors to a site. A very handy use of server instructions is to automatically insert standard parts into web pages; the parts can be modified in only one file and the changes will show up in all the files containing that part.

    The general form of the SSI directive is:

    <!--#command parameter="argument"-->

    Here are three types of server instructions:

    <!--#exec cgi="[script.cgi]"-->

    Tells the server to execute the script [script.cgi].
    The exec include will trigger a script or command. The commands available to you vary according to the server your page is on, contact your ISP to find out which ones are available to you.


    <!--#include file="[filename]"-->

    Inserts the file [filename] (provided [filename] is in the same directory as the current file).

    Or...

    <!--#include virtual="[file reference]"-->

    Inserts the file [file reference].
    Including additional information on your page is one of the most powerful applications of SSI. The extension on the external include can be .txt, .inc or .html. If you use .shtml, you may nest includes within includes. Here is an example:
    <!--#include virtual="pp.shtml" --> which outputs:
    Purple polka-dotted elephants.

    The source for pp.html is:
    Purple polka-dotted <!--#include virtual="elephant.shtml" -->.
    The source for elephant.shtml is:
    elephants


    <!--#echo var="[server/environmental variable]"-->

    Inserts the information from [server/environmental variable] into the text.


    Server Side Includes (SSI) Resources
    SSI Tutorial
    http://www.useforesite.com/tut_ssi.shtml
    The ECHO Directive: Displaying the Environment in Server Side Includes!
    http://bignosebird.com/sdocs/echo.shtml
    Ada's Introduction to SSI
    http://adashimar.hypermart.net/ssi.htm
    Beginner's Guide To Server Side Includes (SSI)
    http://echodev.com/tutorials/ssi/basics/
    Server Side Includes
    http://mkruse.netexpress.net/info/ssi/
    How to Get Started With Server-Side Includes
    http://www.netscapeworld.com/netscapeworld/nw-01-1997/nw-01-ssi.html
    Server Side Includes
    http://www.carleton.ca/~dmcfet/html/ssi3.html
     

    SSI defined by Webopedia

    NCSA Server Side Includes HTTPd Tutorial

    www.acoustic.org/dm164/script/ssi.shtml for class information on SSI.

    See Webmonkey for help with web design.