|
Posted by mbstevens on 11/12/07 20:03
Ed Mullen wrote:
>
> But, wouldn't that mean that the HTML that I want to include using PHP
> would then be physically present in all the html files? Or am I
> misunderstanding?
>
Yes. Space is usually not a problem, since the extra code is only a K or less
per file. The time it takes to serve the page is also not a problem,
since no program except the server itself is called to serve the page.
An example of the kind of site a preprocessor would -not- work for would be
newegg.com. On a site like that, you're pulling little bits and pieces of
information from all sorts of places to generate a page.
But if your pages are mostly static, a preprocessor is a good way to
do things.
http://www.htmlhelp.com/links/preprocessors.html
....has a nice selection. Or just write your own for your special needs.
It doesn't take a lot of effort.
Navigation:
[Reply to this message]
|