header,footerの読み込み
PHPで。
<?php require_once(“header.html”); ?>
<body>
メインコンテンツ
</body>
<?php require_once(“footer.html”); ?>
てな具合に、headerとfooterを別ファイルにして、
そのファイルを読み込むように記述する。
header.htmlをいじるだけで全てのファイルに反映させることが可能です。
includeでもOK。
PHPで。
<?php require_once(“header.html”); ?>
<body>
メインコンテンツ
</body>
<?php require_once(“footer.html”); ?>
てな具合に、headerとfooterを別ファイルにして、
そのファイルを読み込むように記述する。
header.htmlをいじるだけで全てのファイルに反映させることが可能です。
includeでもOK。