post your comment   print   send to a friend
Rate:   0% | Views: 527
Question categories:  Shared Hosting

How do I use SSI?

In order SSI to work, the files containing the include directive should have ".shtml" extension instead of just ".html".

Here is an example: Let's say that we have a file called "test.shtml" which uses SSI to include a file called "test.inc".

Here is the content of the "test.shtml" file:

<!--begin-->
<HTML>
<HEAD>
<TITLE>SSI test</TITLE>
</HEAD>
<BODY>
<P>This is a test page. The included file should display below.</p>

<!--#include virtual="test.inc"-->

</BODY>
</HTML>
<!--end-->


Here is some more information on SSI:

A server-side include is a variable value (for example, a file "Last modified" date) that a server can include in an HTML file before it sends it to the requestor. If you're creating a Web page, you can insert an include statement in the HTML file that looks like this:

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

The server will obtain the last-modified date for the file and insert it before the HTML file is sent to requestors.

LAST_MODIFIED is one of several environment variables that an operating system can keep track of and that can be accessible to a server program. The server administrator can make these environment variables usable when the system is set up.

A Web file that contains server-side include statements (such as the "echo" statement above) is usually defined by the administrator to be a file with an ".shtml" suffix. You can think of a server-side include as a limited form of common gateway interface application. In fact, the CGI is not used. The server simply searches the server-side include file for CGI environment variables, and inserts the variable information in the places in the file where the "include" statements have been inserted.

Customer Feedback
Rate:   0% | Views: 527 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Server Dedicated Hosting | Web Page Design    Back to serch results
Browse the Base
Knowledge Base
Shared Hosting
  Legacy Hosting Plans
  Unix Plans
  NT Plans
  Email
  SSL
  Fiberia
Messages
Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What does the Archive Manager tool do?
 
2. How can I archive a directory from my web-hosting?
 
3. What is the use of the File Manager tool?
 
4. What is the meaning of Owner, Group and Everyone in the permissions panel?
 
5. How to Redirect URL?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest