|
Server Side Includes
Server side includes allow you to include other files or
commands within a web page. For example, you can have the page display the local
time and date, current document, hostname, and more. See the tutorial below.
Things to remember:
1. Name the html page with a .shtml extension (eg index.shtml) so
that the server will parse the page. Otherwise the page is sent 'as is'.
2. Here is a sample:
<!--#echo var="DATE_LOCAL" -->
Emebed the code above in a .shtml page
and you should see the local date displayed in the web page.
The NCSA tutorial on
Server
Side Includes. Please ignore the server configuration section as the
server should already have INCLUDES turned on by default.
|