Shtml website explain the use of SSI

Related Tags:

  1, Config order 

  Config orders mainly for SSI revise the default settings.    Of which: 

  Errmsg: set the default error messages.    In order to be able to return to normal users set the wrong message in the html document Errmsg parameter must be placed in the order in front of other SSI, or the client can only show that the default error message, and not set by the user-defined information. 

  <!--# Config errmsg = "Error! Please email webmaster@mydomain.com -> 
  Timefmt: definition of the use of the date and time format.    Timefmt parameters must be used before in the echo command. 

  <!--# Config timefmt = "% A, B%% d,% Y" -> 
  <!--# Echo var = "LAST_MODIFIED" -> 
  Showing results: 

  Wednesday, April 12, 2000 
  Perhaps users of the cases used in the% A% B% d feel very strange, Below we summarize in tabular form to SSI some of the more common date and time format. 

  Sizefmt: Decision on file size bytes, kilobytes or megabytes for the unit.    If the byte unit, parameter value of "bytes" For kilobytes and megabytes can use the initials form.    Similarly, sizefmt parameters fsize orders must be placed on the front to use. 

  <!--# Config sizefmt = "bytes" -> 
  <!--# Fsize file = "index.html" -> 
  2, Include orders 

  Include other documents can be ordered in the text or picture analysis was inserted into the current document, which is the key to the entire SSI.    Include orders only through changes to a document can be an instant update on the entire site! 

  Include orders with two different parameters: 

  Virtual: This paper presents a document to the server side of the virtual path.    For example: 

  <!--# Include virtual = "/ includes / header.html" -> 
  File: given the relative to the current directory path, which can not be used "../", can not use absolute path.    For example: 

  <!--# Include file = "header.html" -> 
  This requires that each directory contains a header.html document. 

  3, Echo order 

  Echo command displays the following environmental variables: 

  DOCUMENT_NAME: Showing the name of the current document. 

  <!--# Echo var = "DOCUMENT_NAME" -> 
  Showing results: 

  Index.html 

  DOCUMENT_URI: Virtual documents show that the current path.    For example: 

  <!--# Echo var = "DOCUMENT_URI" -> 
  Showing results: 

  / YourDirectory / YourFilename.html 
  With the continuous development of websites, more and more of those long url address will definitely be people headaches.    If the use of SSI, everything will be solved immediately.    Web site because we are able to order the domain name and SSI show combines the complete URL, namely: 

  Http://YourDomain <!--# echo var = "DOCUMENT_URI" -> 
  QUERY_STRING_UNESCAPED: Show escaped with a client sent from the Query string, in which all the special characters have escaped before at "\."    For example: 

  <!--# Echo var = "QUERY_STRING_UNESCAPED" -> 
  DATE_LOCAL: Display server settings, the date and time zone.    Users can combine orders timefmt config parameters, customize output information.    For example: 

  <!--# Config timefmt = "% A, the%% d of B, in the year% Y" -> 
  <!--# Echo var = "DATE_LOCAL" -> 
  Showing results: 

  Saturday, the 15 of April, in the year 2000 
  DATE_GMT: function and DATE_LOCAL same, but the return of standard time is GMT as the benchmark date.    For example: 

  <!--# Echo var = "DATE_GMT" -> 
  LAST_MODIFIED: display the current document last updated.    Similarly, SSI This is a very practical function, as long as the HTML document in this line by adding the following simple words on the page can be dynamic display updated. 

  <!--# Echo var = "LAST_MODIFIED" -> 
  CGI environment variables 

  In addition to SSI environment variables, the echo command can also display the following CGI environment variables: 

  SERVER_SOFTWARE: display server software name and version.    For example: 
  <!--# Echo var = "SERVER_SOFTWARE" -> 
  SERVER_NAME: display server host name, IP address or DNS aliases.    For example: 
  <!--# Echo var = "SERVER_NAME" -> 
  SERVER_PROTOCOL: Showing the client requests the use of the name and version of the agreement, such as HTTP/1.0.    For example: 
  <!--# Echo var = "SERVER_PROTOCOL" -> 
  SERVER_PORT: display server response port.    For example: 
  <!--# Echo var = "SERVER_PORT" -> 
  REQUEST_METHOD: Showing the client requests a document, including GET, HEAD, and POST.    For example: 
  <!--# Echo var = "REQUEST_METHOD" -> 
  REMOTE_HOST: Showing a client requests information host name. 
  <!--# Echo var = "REMOTE_HOST" -> 
  REMOTE_ADDR: Showing a client requests information IP address. 
  <!--# Echo var = "REMOTE_ADDR" -> 
  AUTH_TYPE: Showing user authentication methods. 
  <!--# Echo var = "AUTH_TYPE" -> 
  REMOTE_USER: Access Protection show that the pages used by the user account name. 
  <!--# Echo var = "REMOTE_USER" -> 4, Fsize: to display the specified file size can be ordered with the sizefmt config parameters custom output format. 

  <!--# Fsize file = "index_working.html" -> 
  5, Flastmod: documents show that the designated date last modified, can combine orders timefmt config parameter control output format. 

  <!--# Config timefmt = "% A, the%% d of B, in the year% Y" -> 
  <!--# Flastmod file = "file.html" -> 
  Here, we can use flastmod parameters show a page of links to all the pages updated.    As follows: 

  <!--# Config timefmt = "% B% d,% Y" -> 
  <A HREF="/directory/file.html"> File </ A> 
  <!--# Flastmod virtual = "/ directory / file.html" -> 
  <A HREF="/another_directory/another_file.html"> Another File </ A> 
  <!--# Flastmod virtual = "/ another_directory / another_file.html" -> 
  Showing results: 
  File April 19, 2000 
  Another File January 08, 2000 
  6, Exec 

  Exec CGI scripts can execute orders or shell command.    Use as follows: 

  Cmd: Use / bin / sh the specified string.    If SSI used IncludesNOEXEC option, the order will be shielded. 

  Cgi: CGI scripts can be used to perform.    For example, the following examples of the use of this service-cgi-bin directory under the counter.pl script pages in each place a counter: 

  <!--# Exec cgi = "/ cgi-bin/counter.pl" -> 

Related articles:

Hiei Luantan Series: comprehensive review Web2.0
  I. Summary    Web2.0 showered from the rostrum, to the bombing of the media-lun, Web2.0 era has arrived, you ready?    As the needs of the project, huh, although previously heard of Web2.0, but Jacky and objected to the project until pressed, and finally to sort out wha...
Chinese typesetting experience CSS
  First on how to set font, color, size, such as blank paragraphs relatively simple applications, such as back to the first word on the sinking, the first line indentation.    Finally some common stresses Chinese web page layout, such as the cut in the text, the word discount fixed wi...
CSS conditions Notes
  In the browser market makers cutting and more versions of today, just to do HACK CSS, has been unable to meet the requirements of pages produced, the perfect structure of pages, eliminating many HACK, but different versions of the box model , to write their HACK, not even in time to explain t...
Css Manual (c) Font font
  H3 font settings [(font-family: times)    P (font-family: courier)    P.sansserif (font-family: sans-serif)    Set text size h1 (font-size: 150%)    H2 (font-size: 130%)    P (font-size: 100%)    Set up text styles h1 (font-st...
Start from scratch learning FLASH 3D Guide
  Demonstration effects: (drag with the mouse directly below the object)    Click here to download the source files    We all know that the three-dimensional coordinates of points are three, but only two-dimensional FLASH the coordinates, so FLASH to realize the "thr...