SSI : ファイルを連結する

書式

<!--#include file="ファイル名" -->

説明

ファイルを連結するにはincludeを使います。連結するファイルはhtmlでもtext形式でも、何でもOKです。ただし、画像データなどは駄目です。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>ファイル連結</title>
</head>
<body>
ファイル連結:
<!--#include file="add.txt" -->
</body>
</html>