|
if your server/host has PHP installed, then you can use php's include() function. it's quite simple to use.
however, to use php in your pages, you need to change the extension to .php
same applies for ssi, to use ssi i think you need to change the page extension to .shtml (i think, ive not actually used it before!)
what you should do is create a header page (all code that will go before the content) and a footer page (all code that goes after the content). then when you make a page, say "about.php" (your "About Us" page, just an example), you wcould include the header and footer with the code like so:
<?php include ("header.php") // Page code before content ?>
[ You page code/content for about us will go here ]
<?php include ("footer.php") // Page code after content ?>
save that page as about.php and that's basically it. also, note that the header and footer files don't have to have the .php extension, unless you want to write php in them.
|