Server-Side Include Sample

What Are They?

This server-parsed HTML file has several specially constructed tags that are expanded by the server prior to sending the HTML file to the browser. These commands allow other documents to be included within this document, special values can be displayed (such as date and time), scripts can be launched from within this document having the scripts output embedded in this document, and much more.

Includes in Action

Below are three HTML documents that contain server-side includes.

  1. Echo and Exec Sample
    A sample server-side include file that displays a variable using the echo tag and another that embeds the output of a CGI script using the exec tag.

  2. Database Sample
    A sample server-side include file that embeds an AS/400 database file in the middle of the HTML document using the include tag.

  3. Combined Sample
    A sample server-side include file that combines both of the above samples into one document.



Home | Sales | Support | © I/NET, Inc.