Reply to Re: Server Side Include (SSI) Include Help

Your name:

Reply:


Posted by newsgroups on 12/12/06 19:36

Andy Dingley wrote:
> newsgroups@bandwood.com wrote:
>
> > What I'm trying to do is for each page I want to have a dynamic include
>
> Don't. If you do this (and it's possible, although not with PHP) you
> will badly affect the server's ability to cache the merged document,
> thus affecting performance.
>
> > that is derived from the current document name.
>
> That's a static include then, not dynamic. The document doesn't change
> name very often, does it? Strictly it's a large number of individual
> static includes, one per document. No connection between them, but
> they're not dynamic.
>
> > Example, for a page named foo.shtml I want to derive the following
> > include statement:
> > <!--#include virtual="/foodir/foo_incl.htm" -->
>
> Then set your documents up like this manually. It's very easy, just a
> little time consuming. Personally I have a good editor, so it would be
> no big deal. If you really have thousands to deal with, write a line or
> two of Perl to process them for you.
>
> I'm also puzzled as to why you need such an include. It's certainly
> possible to do it, just odd as to why includes (usually a mechanism for
> sharing common code) need to be used here to embed a lot of distinct
> documents in other distinct documents ? Why not just paste the content
> directly in? Could you embed foo.html inside foo_incl.html instead
> (assuming foo_incl changes by some data export process and foo doesn't
> as it's just a header?)

Trust me I do need it. You point on caching is very valid and I'd not
thought of that side-effect. I'll jyst manually add them,

Thanks for your post and advice.

[Back to original 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

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