Server Side Includes

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
 
Line 6: Line 6:
 
|released=1994
 
|released=1994
 
}}
 
}}
'''Server Side Includes''' ('''SSI'''), or '''Server-parsed HTML''' ('''SHTML'''), is a simple scripting language used to create dynamic web pages. Like [[PHP]], SSI directives are typically embedded in a file that is otherwise in [[HTML]] format. The web server parses the file, executes the SSI code, and replaces it with its output.
+
'''Server Side Includes''' ('''SSI'''), or '''Server-parsed HTML''' ('''SHTML'''), is a simple scripting language used to create dynamic web pages. Like [[PHP]], SSI directives are typically embedded in a file that is otherwise in [[HTML]] format. The web server parses the file, executes the SSI code, and replaces the code with the code's output.
  
 
Today's templating engines have more or less rendered SSI obsolete.
 
Today's templating engines have more or less rendered SSI obsolete.
Line 23: Line 23:
  
 
== Notes ==
 
== Notes ==
You might recognize SSI's universal error message:
+
Web surfers of a certain age might recall SSI's universal error message:
 
  [an error occurred while processing this directive]
 
  [an error occurred while processing this directive]
  

Latest revision as of 17:22, 24 March 2018

File Format
Name Server Side Includes
Ontology
Extension(s) .shtml, .shtm, .sht, .stm
MIME Type(s) text/x-server-parsed-html, text/x-server-parsed-html3
Released 1994

Server Side Includes (SSI), or Server-parsed HTML (SHTML), is a simple scripting language used to create dynamic web pages. Like PHP, SSI directives are typically embedded in a file that is otherwise in HTML format. The web server parses the file, executes the SSI code, and replaces the code with the code's output.

Today's templating engines have more or less rendered SSI obsolete.

Contents

[edit] Discussion

Definitive information about the origin of SSI is hard to come by, but we believe it was created by Rob McCool in 1993–1994, as part of the NCSA HTTPd web server software. A primitive version of it appeared in NCSA HTTPd 1.1 (1994-01). In that version, directives begin with the string:

<inc srv

NCSA HTTPd 1.2 (1994-04) introduced the modern syntax, in which directives masquerade as HTML comments, and begin with:

<!--#

NCSA HTTPd 1.2+ included a tool, inc2shtml.c, to convert from the old to the new syntax.

[edit] Variants

[TODO: There are a number of variants of SSI, including something called XSSI (eXtended Server Side Includes).]

[edit] Notes

Web surfers of a certain age might recall SSI's universal error message:

[an error occurred while processing this directive]

[edit] Software

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox