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

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

 

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

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