Navigate
Sponsors
|
SSI Other Basic CommandsIntroductionThis includes some commands which there was no point dedicating a whole page to. FLASTMOD CommandThe flastmod command displays the date the specified document was last modified. Document.htm was last modified: <!--#flastmod
virtual="document.htm" --> FSIZE CommandThe fsize command gives the size of the specified file in bytes. The path to the file is given relative to the document root. The size of this image is: <!--#fsize
virtual="/main/images/image1.jpg" --> Printenv CommandThe Printenv command outputs a list of all variables and their values, including environmental and user defined variables. It has no attributes. To use the printenv element simply use the following:
<!--#printenv --> Result: DOCUMENT_ROOT=/usr/local/4admin/apache/vhosts/ssi-developer.net/httpdocs HTTP_ACCEPT=text/xml,application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, image/png, */*; q=0.5 HTTP_ACCEPT_CHARSET=ISO-8859-1, utf-8;q=0.7, *;q=0.7 HTTP_ACCEPT_ENCODING=gzip, deflate HTTP_ACCEPT_LANGUAGE=en-us, en;q=0.5 HTTP_CONNECTION=keep-alive HTTP_HOST=www.ssi-developer.net HTTP_KEEP_ALIVE=300 HTTP_REFERER=http://www.ssi-developer.net/ssi/index.shtml HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9 PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/root2/bin REMOTE_ADDR=81.197.7.154 REMOTE_PORT=3316 SCRIPT_FILENAME=/usr/local/4admin/apache/vhosts/ ssi-developer.net/httpdocs/ssi/ssi-other.shtml SERVER_ADDR=66.118.156.142 SERVER_ADMIN=admin@webmasters.com SERVER_NAME=www.ssi-developer.net SERVER_PORT=80 SERVER_SIGNATURE= <ADDRESS>Apache/1.3.27 Ben-SSL/1.48 Server at www.ssi-developer.net Port 80</ADDRESS> SERVER_SOFTWARE=Apache/1.3.27 Ben-SSL/1.48 (Unix) mod_throttle/3.1.2 Chili!Soft-ASP/3.6.2 mod_perl/1.29 PHP/4.3.4 FrontPage/5.0.2.2510 UNIQUE_ID=QQqw538AAAEAAHTSGvI GATEWAY_INTERFACE=CGI/1.1 SERVER_PROTOCOL=HTTP/1.1 REQUEST_METHOD=GET QUERY_STRING= REQUEST_URI=/ssi/ssi-other.shtml SCRIPT_NAME=/ssi/ssi-other.shtml DATE_LOCAL=Friday, 30-Jul-2004 16:34:47 EDT DATE_GMT=Friday, 30-Jul-2004 20:34:47 GMT LAST_MODIFIED=Wednesday, 21-Jan-2004 04:53:04 EST DOCUMENT_URI=/ssi/ssi-other.shtml DOCUMENT_PATH_INFO= USER_NAME=endamcg DOCUMENT_NAME=ssi-other.shtml The printenv element is mainly used for debugging and is only available in Apache 1.2 and above. Also, enclose it in <pre> tags for better formatting. |