|
| What are SSI's? |
Adding SSI's (Server Side Includes) to your web pages is one of the easiest ways to add basic dynamic (changing) content to your web pages.
SSI's are special commands that you write within the HTML your web page. These SSI commands are never sent out as written when somebody requests one of your web pages. Instead, before the web page is sent, the web server replaces the SSI command with the information it specifies.
|
|
What are SSI's
used for? |
One of the most common uses of an SSI command is to include the current date or time on your web page. Another common use is to create "counters" on web pages that show how often they have been accessed. |
|
How do you write
an SSI command? |
An SSI command is written within an HTML comment line. An HTML comment is a special line that is normally ignored and not displayed by browsers.
<!-- anything in here is an HTML comment -->
Putting the command to display the current date and time with an HTML comment creates the SSI command below. Since this page itself uses SSI processing, the result of the above command looks like this:
|
| SSI for current Date: |
<!--#echo var="date_local"--> |
Today's Date: 2008/05/16:06:48:58
|
|
 |
Putting in the comand to display a counter variable creates the Counter SSI command. The result is this counter shown to the right that increases each time this page is accessed.
|
| SSI for a Counter: |
<!--#counter var="simple_counter"--> |
The Counter: 526 |
|
What all can you do
with SSI commands? |
Since an SSI command must be executed by the Web Server before the page is sent, the SSI commands available can vary depending on whose Web Server is running your pages. Many basic SSI commands, like the date and counter examples above have become standard and are available on nearly all web servers that allow SSI command use.
If you are hosting your web pages with the Lorian Network, check our Support section for a list of the SSI commands available here and the specifications for writing them. |
|
ADD GRAPHICS |
ADDING CGI'S |
|