You are here: Re: include file in include file « HTML « IT news, forums, messages
Re: include file in include file

Posted by Andy Dingley on 11/12/07 10:13

On 12 Nov, 07:39, PTM <ptmu...@utu.fi> wrote:
> is there a way to make include file contain [A] another call for an
> include file [B] ?

Yes. Simple SSI won't, but many of the "programming language based"
include mechanisms will support this.

> Or is there any other trick to reach the same aim.

Generally think about just what it is you're trying to do logically
with your data, then do as close to that as you can, in terms of
implemented code. "Includes" are a pretty blunt tool, especially at
the level of what are fragments of output-ready HTML. If you're
working with a programming language instead though, this is very easy.
In particular, an example of repeated <img> elements where you had to
read matching pairs of data elements for the image URL and the alt
attribute would be impractical by includes, easy with language
variable.

 

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

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