|
|
CUSTOMER SUPPORT | ||
|
HELP FOR WEBCOM'S TOOLS & SERVICES |
|||
|
WebCom Support |
|
||
|
Control Panel Login Tools & Services · Domain Names · FTP · Page Creator · File Manager · Form Processor · Hit Counter · Glimpse Indexing · Password Protection · Site Activity Reports · WebCommerce Getting Started FAQs Glossary Contact Support |
Server Side Includes The WebCom WWW Server allows you to create documents which include other documents and various dynamically generated information, such as the current date, the file's last modification date, and the size or last modification of other files. Note: The "exec" command is not available, due to security considerations. Special File Extension Necessary Files utilizing includes must end in ".shtml". If they do not, the includes will be ignored. The "include" format All include directives are formatted as SGML comments within your document. This is in case the document should ever be transferred without being parsed. Each directive has the following format: <!--#command tag1="value1" tag2="value2" --> Each command takes different arguments, most only accept one tag at a time. Here is a breakdown of the commands and their associated tags: Inserts the text of a specified document into the body of the current document. Is commonly used for including headers or footers in web pages. <!--#include virtual="/dir/file.ext"-->
Example: <!--#include virtual="/virtual_sample.txt"--> This is a sample
text file. It was included in this file by the include virtual tag:
This paragraph includes a hotlink, and tags such as bold and emphasis. Example: <!--#include file="sample.txt"--> This is a sample text file. It was included in this file by the include file tag: <!--#include file="sample.txt"-->. This paragraph includes a hotlink, and tags such as bold and emphasis.
<!--#echo var="DOCUMENT_NAME"--> Result: welcome.shtml <!--#fsize file="sample.txt"--> Result: 1K (without sizefmt) <!--#config sizefmt="bytes"-->
Result: 329 (with sizefmt) <!--#flastmod file="sample.txt"--> Result: Thursday, 13-Jul-95 14:40:33 The config directive controls various aspects of the file parsing. There are two valid tags:
<!--#config errmsg="[This directive failed miserably!]"-->
Result: [This directive failed miserably!] <!--#config sizefmt="bytes"--> ![]() phone: 1-800-GETVERIO © Verio Inc. 1996-2007 ::: Acceptable Use Policy ::: Privacy |
||