📄 mod_include.html.ja.euc-jp
字号:
キャプチャされた婶尸は泼检恃眶 <code>$1</code> .. <code>$9</code>
に呈羌されます。</p>
<div class="example"><h3>毋</h3><p><code>
<!--#if expr="$QUERY_STRING = /^sid=([a-zA-Z0-9]+)/" --><br />
<span class="indent">
<!--#set var="session" value="$1" --><br />
</span>
<!--#endif -->
</code></p></div>
</dd>
<dt><code><var>string1</var> < <var>string2</var><br />
<var>string1</var> <= <var>string2</var><br />
<var>string1</var> > <var>string2</var><br />
<var>string1</var> >= <var>string2</var></code></dt>
<dd><var>string1</var> と <var>string2</var> を孺秤します。
<em>矢机误として</em>孺秤される (<code>strcmp(3)</code> を蝗脱)
ことに庙罢してください。ですから、矢机误 "100" は "20"
よりも井さいことになります。</dd>
<dt><code>( <var>test_condition</var> )</code></dt>
<dd><var>test_condition</var> が靠のとき、靠</dd>
<dt><code>! <var>test_condition</var></code></dt>
<dd><var>test_condition</var> が刀のとき、靠</dd>
<dt><code><var>test_condition1</var> &&
<var>test_condition2</var></code></dt>
<dd><var>test_condition1</var> かつ
<var>test_condition2</var> が靠のとき、靠</dd>
<dt><code><var>test_condition1</var> ||
<var>test_condition2</var></code></dt>
<dd><var>test_condition1</var> または
<var>test_condition2</var> が靠のとき、靠</dd>
</dl>
<p>"<em>=</em>" と "<em>!=</em>" の数が "<em>&&</em>" より
きつく芦躯します。"<em>!</em>" の芦躯が办戎きつくなっています。
ですから笆布の企つは霹擦です:</p>
<div class="example"><p><code>
<!--#if expr="$a = test1 && $b = test2" --><br />
<!--#if expr="($a = test1) && ($b = test2)" -->
</code></p></div>
<p>靠刀猛オペレ〖タ <code>&&</code> と <code>||</code>
は票じ庭黎刨です。
これらのオペレ〖タで办数により动い庭黎刨をつけたい眷圭には、
崇柑を蝗う涩妥があります。</p>
<p>恃眶やオペレ〖タとして千急されないものはすべて矢机误として
胺われます。矢机误は苞脱射で跋むこともできます: <code>'string'</code>
のように。苞脱射で跋まれていない矢机误には鄂球 (スペ〖スとタブ)
を崔めることはできません。それらは恃眶などの剁を尸违するために
蝗われているからです。剩眶の矢机误が鲁いているときは、
鄂球を粗に掐れて办つにくっつけられます。ですから、</p>
<div class="example"><p><code><var>string1</var> <var>string2</var></code> は <code><var>string1</var> <var>string2</var></code> になります。<br />
<br />
また、<br />
<br />
<code>'<var>string1</var> <var>string2</var>'</code> は <code><var>string1</var> <var>string2</var></code>
になります。</p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="SSIEndTag" id="SSIEndTag">SSIEndTag</a> <a name="ssiendtag" id="ssiendtag">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>include 妥燎を姜位させる矢机误</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>SSIEndTag <var>tag</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SSIEndTag "-->"</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_include</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>2.0.30 笆惯で网脱材墙</td></tr>
</table>
<p>このディレクティブは <code class="module"><a href="../mod/mod_include.html">mod_include</a></code> が玫す、
include 妥燎の姜位を绩す矢机误を恃构します。</p>
<div class="example"><h3>毋</h3><p><code>
SSIEndTag "%>"
</code></p></div>
<h3>徊救</h3>
<ul>
<li><code class="directive"><a href="#ssistarttag">SSIStartTag</a></code></li>
</ul>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="SSIErrorMsg" id="SSIErrorMsg">SSIErrorMsg</a> <a name="ssierrormsg" id="ssierrormsg">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>SSI のエラ〖があったときに山绩されるエラ〖メッセ〖ジ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>SSIErrorMsg <var>message</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SSIErrorMsg "[an error occurred while processing this
directive]"</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト, ディレクトリ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>All</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_include</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>バ〖ジョン 2.0.30 笆惯で蝗脱材墙</td></tr>
</table>
<p><code class="directive">SSIErrorMsg</code> ディレクティブは <code class="module"><a href="../mod/mod_include.html">mod_include</a></code>
がエラ〖が弹こったときに山绩するメッセ〖ジを恃构します。プロダクションサ〖バでは
メッセ〖ジがユ〖ザに山绩されないようにするために
デフォルトエラ〖メッセ〖ジを <code>"<!-- Error -->"</code>
に恃えるというようなことを雇えるかもしれません。</p>
<p>このディレクティブは <code><!--#config
errmsg=<var>message</var> --></code> 妥燎と票じ跟蔡になります。</p>
<div class="example"><h3>毋</h3><p><code>
SSIErrorMsg "<!-- Error -->"
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="SSIStartTag" id="SSIStartTag">SSIStartTag</a> <a name="ssistarttag" id="ssistarttag">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>include 妥燎を倡幌する矢机误</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>SSIStartTag <var>tag</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SSIStartTag "<!--#"</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_include</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>バ〖ジョン 2.0.30 笆惯で蝗脱材墙</td></tr>
</table>
<p>このディレクティブは <code class="module"><a href="../mod/mod_include.html">mod_include</a></code> が玫す、include
妥燎の倡幌を绩す矢机误を恃构します。</p>
<p>企つのサ〖バで (もしかすると侍」の檬超で) ファイルの叫蜗を豺老していて、
それぞれに般うコマンドを借妄させたい、
というようなときにこのオプションを蝗います。</p>
<div class="example"><h3>毋</h3><p><code>
SSIStartTag "<%"<br />
SSIEndTag "%>"
</code></p></div>
<p>惧の毋のように滦炳する
<code class="directive"><a href="#ssiendtag">SSIEndTag</a></code> を驶せて蝗うと、
布に绩す毋のように SSI ディレクティブを蝗えます:</p>
<div class="example"><h3>般う倡幌と姜位のタグを蝗った SSI ディレクティブ</h3><p><code>
<%printenv %>
</code></p></div>
<h3>徊救</h3>
<ul>
<li><code class="directive"><a href="#ssiendtag">SSIEndTag</a></code></li>
</ul>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="SSITimeFormat" id="SSITimeFormat">SSITimeFormat</a> <a name="ssitimeformat" id="ssitimeformat">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>泣烧けを附す矢机误の今及を肋年する</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>SSITimeFormat <var>formatstring</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SSITimeFormat "%A, %d-%b-%Y %H:%M:%S %Z"</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト, ディレクトリ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>All</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_include</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>2.0.30 笆惯で蝗脱材墙</td></tr>
</table>
<p>このディレクティブは <code>DATE</code> 茨董恃眶を echo して泣烧を附す矢机误が
山绩されるときの今及を恃构します。<var>formatstring</var> は
C 筛洁ライブラリの <code>strftime(3)</code> と票じ妨及です。</p>
<p>このディレクティブは <code><!--#config
timefmt=<var>formatstring</var> --></code> 妥燎と票じ跟蔡になります。</p>
<div class="example"><h3>毋</h3><p><code>
SSITimeFormat "%R, %B %d, %Y"
</code></p></div>
<p>惧のディレクティブでは、泣烧は "22:26, June 14, 2002" という
妨及で山绩されます。</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="SSIUndefinedEcho" id="SSIUndefinedEcho">SSIUndefinedEcho</a> <a name="ssiundefinedecho" id="ssiundefinedecho">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>踏年盗の恃眶が echo されたときに山绩される矢机误</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>SSIUndefinedEcho <var>string</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SSIUndefinedEcho "(none)"</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>All</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_include</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>2.0.34 笆惯で网脱材墙</td></tr>
</table>
<p>このディレクティブは恃眶が年盗されていないにも簇わらず
"echo" されたときに <code class="module"><a href="../mod/mod_include.html">mod_include</a></code>
が山绩する矢机误を恃构します。</p>
<div class="example"><h3>毋</h3><p><code>
SSIUndefinedEcho "<!-- undef -->"
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="XBitHack" id="XBitHack">XBitHack</a> <a name="xbithack" id="xbithack">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>悸乖ビットが肋年されたファイルの SSI ディレクティブを
豺老する</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>XBitHack on|off|full</code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>XBitHack off</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト, ディレクトリ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>Options</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_include</td></tr>
</table>
<p><code class="directive">XBitHack</code> ディレクティブは奶撅の HTML
ドキュメントの豺老を扩告します。このディレクティブは MIME タイプ
<code>text/html</code> と簇息烧けられているファイルにのみ逼读します。
<code class="directive">XBitHack</code> は笆布の猛をとることができます。</p>
<dl>
<dt><code>off</code></dt>
<dd>悸乖材墙ファイルに滦して泼侍な胺いをしません。</dd>
<dt><code>on</code></dt>
<dd>ユ〖ザの悸乖ビットが肋年されている <code>text/html</code>
ファイルは链てサ〖バで豺老する html ドキュメントとして胺われます。</dd>
<dt><code>full</code></dt>
<dd><code>on</code> と票屯ですが、グル〖プ悸乖ビットもテストします。
もしそれが肋年されていれば、手されるファイルの <code>Last-modified</code> の
泣烧をファイルの呵姜饯赖箕癸にします。それが肋年されていないときは、
last-modified の泣烧は流られません。このビットを肋年すると、
クライアントやプロキシがリクエストをキャッシュできるようになります。
<div class="note"><strong>庙罢</strong> 戮の CGI を <code>#include</code>
するかもしれないものや、称アクセスに滦して般う叫蜗を栏喇する
(もしくは稿のリクエストで恃わるかもしれないもの)
すべての SSI スクリプトに滦してグル〖プ悸乖ビットが
肋年されていないことを澄千できない眷圭は、full は蝗わない数が紊い
でしょう。</div>
</dd>
</dl>
</div>
</div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="../en/mod/mod_include.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_include.html" title="Japanese"> ja </a></p>
</div><div id="footer">
<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">モジュ〖ル</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">脱胳</a> | <a href="../sitemap.html">サイトマップ</a></p></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -