Quote:
|
Originally Posted by msoucy
Can anyone tell me is it possible to reference HTML code in one file that actually resides in a second file? Here is what I mean. I'm in the process of revamping a web site, and I would like to have the HTML code for my navigation menu reside in one HTML file, and have that file be referenced by all of the HTML pages on my web site without having to physically copy that code into each HTML page. I want to be able to maintain the code for my navigation menu in only one file. I hope I've made myself clear here.
|
You can do it without PHP by using SSI (server side includes).
To include a file do this:
<!--#include file="/some/path/to/mtfile.htm"-->
Syntax varies slightly, some servers insist on using 'virtual' instead of 'file, but do some seraches and you'll find plenty of info.