Posted by Stan McCann on 02/22/06 17:22
"Tony Wainwright" <teejayuu@btinternet.com> wrote in
news:dtheqd$gq1$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com:
> Hi
> I am teaching myself how to develop websites for my own benefit and
> have come across something that I don't know how to do. I want to
> be able to include in every page a file that contains information
> that will be displayed on every page i.e. copyright info. I don't
> want to have to re-write every page when I change this information -
> I just want to be able to edit it once. I know it can be done in PHP
> (as shown below), but I want to be able to do it in HTML.
> <?php
> include_once ('includes/copyright.html');
> ?>
> Is this possible?
If your sever supports SSI, then:
<!--#include virtual="includes/copyright.html" -->
If you are going to try instead of ask, some installations use the
Xbithack which requires the file including others to have the x bit
set.
--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Webmaster, NMSU at Alamogordo http://alamo.nmsu.edu/
Now blocking Google Grouper posts and replies.
http://blinkynet.net/comp/uip5.html
[Back to original message]
|