Looking for answers? We have them! Click for live online support, or search the CWS knowlegebase for answers to all of your questions! If you still need assistance, feel free to call us at 888-426-7793!
Search Support:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

How can I include other files using SSI?
These functions can be used to include everything from bits of html to images to calling cgi scripts in your html pages.

The include command can be used to include a signature file or company logo within an HTML document. The added document or image will appear as if it were part of the original document.

<!--#include file="any.html" -->

If the file to be included is in a different directory than the HTML document use the virtual command argument instead. In the following example, the HTML document resides in a subdirectory but includes a file within account root directory:

<!--#include virtual="/any.html" -->

The exec command can be used to execute a CGI script when the web page is loading. In the following example, the script date.pl within the relative path /cgi-local is executed.

<!--#exec cgi="/cgi-local/date.pl" -->

You could also use the virtual command instead if you need to pass values to the script:

<!--#include virtual="/cgi-local/script.pl?var1=value1&var2=value2" -->


Related Support Items:
Server Side Includes

©1997-2002 Corporate Web Services, Inc., all rights reserved