You are here: Re: Include a file « HTML « IT news, forums, messages
Re: Include a file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация