This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
-<title>Apache Tutorial: Introduction to Server Side Includes - Apache HTTP Server</title>
+<title>Apache httpd Tutorial: Introduction to Server Side Includes - Apache HTTP Server</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
-<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>Apache Tutorial: Introduction to Server Side Includes</h1>
+<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>Apache httpd Tutorial: Introduction to Server Side Includes</h1>
<div class="toplang">
<p><span>Available Languages: </span><a href="../en/howto/ssi.html" title="English"> en </a> |
<a href="../fr/howto/ssi.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<p>SSI directives have the following syntax:</p>
<div class="example"><p><code>
- <!--#element attribute=value attribute=value ... -->
+ <!--#function attribute=value attribute=value ... -->
</code></p></div>
<p>It is formatted like an HTML comment, so if you don't have
configured, the directive will be replaced with its
results.</p>
- <p>The element can be one of a number of things, and we'll talk
+ <p>The function can be one of a number of things, and we'll talk
some more about most of these in the next installment of this
series. For now, here are some examples of what you can do with
SSI</p>
<!--#echo var="DATE_LOCAL" -->
</code></p></div>
- <p>The <code>echo</code> element just spits out the value of a
+ <p>The <code>echo</code> function just spits out the value of a
variable. There are a number of standard variables, which
include the whole set of environment variables that are
available to CGI programs. Also, you can define your own
- variables with the <code>set</code> element.</p>
+ variables with the <code>set</code> function.</p>
<p>If you don't like the format in which the date gets printed,
- you can use the <code>config</code> element, with a
+ you can use the <code>config</code> function, with a
<code>timefmt</code> attribute, to modify that formatting.</p>
<div class="example"><p><code>
This document last modified <!--#flastmod file="index.html" -->
</code></p></div>
- <p>This element is also subject to <code>timefmt</code> format
+ <p>This function is also subject to <code>timefmt</code> format
configurations.</p>
reduce the burden of these updates. You just have to make one
footer file, and then include it into each page with the
<code>include</code> SSI command. The <code>include</code>
- element can determine what file to include with either the
+ function can determine what file to include with either the
<code>file</code> attribute, or the <code>virtual</code>
attribute. The <code>file</code> attribute is a file path,
<em>relative to the current directory</em>. That means that it
<p>If you want to change that message to something else, you
can do so with the <code>errmsg</code> attribute to the
- <code>config</code> element:</p>
+ <code>config</code> function:</p>
<div class="example"><p><code>
<!--#config errmsg="[It appears that you don't know how to use SSI]" -->
</code></p></div>
<p>I expect that I'll have an article some time in the coming
months about using SSI with small CGI programs. For now, here's
something else that you can do with the <code>exec</code>
- element. You can actually have SSI execute a command using the
+ function. You can actually have SSI execute a command using the
shell (<code>/bin/sh</code>, to be precise - or the DOS shell,
if you're on Win32). The following, for example, will give you
a directory listing.</p>