Posted by David Segall on 02/22/06 13:00
"Tony Wainwright" <teejayuu@btinternet.com> wrote:
>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?
I don't think so but you may want to consider a preprocessor that
expands the includes and other macros before you upload the HTML. A
Google for HTML preprocessor yields many of them.
Navigation:
[Reply to this message]
|