SSI语法 Basic SSI directives Syntax <!--#element attribute=value attribute=value ... -->
Today’s date <!--#c onfig timefmt="%Y/%m/%d %a %H:%M:%S" -->
Today is <!--#e cho var="DATE_LOCAL" -->
Modification date of the file This document last modified <!--#f lastmod file="index.html" -->
Including the results of a CGI program <!--#i nclude virtual="/cgi-bin/counter.pl" -->
<!--#i nclude virtual="/cgi-bin/example.cgi?argument=value" -->
You can use "#e xec cgi=" directive, but it can be disabled using the IncludesNOEXEC Option. Including a standard footer <!--#i nclude virtual="/footer.html" -->
Executing commands <!--#e xec cmd="ls" -->
This feature is dangerous. You can allow SSI, but not the exec feature, with the IncludesNOEXEC argument to the Options directive. Setting variables <!--#set var="modified" value="$LAST_MODIFIED" -->
<!--#set v上一页 [1] [2] [3] [4] 下一页 (中华企业文化网)
|