home HTML XML DTD CSS Visual Filter JavaScript Java ASP SSI .NET  
SSI Reference >
Suggested Reading

Directives


tag/attrib/value description
config   Change configuration
errmsg=sMessage   Default error message
sizefmt=["bytes"|"abbrev"]   Filesize format
timefmt="Code+"  
Code  
c   Any ASCII character
%a   Full weekday name
%b   Full month name
%c   Default date and time format
%d   Shortcut for %m/%d/%y
%e   Day of month
%h   Zero-padded 24-hour
%I   Zero-padded 12-hour
%j   Zero-padded day of year
%m   Zero-padded minutes
%n   Newline character
%p   AM or PM indication
%r   Shortcut for %H:%M
%S   Zero-padded seconds
%t   Shortcut for %H:%M:%S
%U   Zero-padded week number
%w   Same as %U
%x   Country-specific time format
%y   4-digit year
%Z   Timezone
echo var=[ sSSIEnvVar | sCGIEnvVar | "HTTP_HeaderName" ]  
SSIEnvVar  
"DATE_GMT"   Current GMT time
"DATE_LOCAL"   Current time in local timezone
"DOCUMENT_NAME"   Requested document name
"DOCUMENT_URI"   Document URL
"LAST_MODIFIED"   Document modification date
"PAGE_COUNT"   Number of accesses to current document
"HTTP_REFERER"   URL of previous document
"TOTAL_HITS"   Total pages served by server
"QUERY_STRING_UNESCAPED"  
CGIEnvVar  
"SERVER_SOFTWARE"   Server software name
"SERVER_NAME"   Server hostname
"GATEWAY_INTERFACE"   CGI revision
"SERVER_PROTOCOL"   HTTPD version number
"SERVER_PORT"   HTTPD port used
"REQUEST_METHOD"   GET or POST
"PATH_INFO"   Extra path info
"PATH_TRANSLATED"   Translated extra path info
"SCRIPT_NAME"   Location on this script
"QUERY_STRING"   Command line parameters
"REMOTE_HOST"   Client domain name
"REMOTE_ADDR"   Client IP address
"AUTH_TYPE"   Client authorization method
"REMOTE_USER"   User ID
"REMOTE_IDENT"   User name
"CONTENT_TYPE"   MIME type of content
"CONTENT_LENGTH"   Size of posted input
exec   Execute external program
cmd=sShellCommand  
cgi=sCGIScript  
flastmod   Display file modification date/time
file=sFilename   Local file
virtual=sFilepath   File with full path
fsize   Display file size
file=sFilename   Local file
virtual=sFilepath   File with full path
include   Include file
file=sFilename   Local file
virtual=sFilepath   File with full path
printenv   Display all environment variables
set var=sVarName value=sVarValue   Display all environment variables