[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Thu, 19 Nov 2009 10:37:39 +0000 (GMT), Gordon Henderson <gordon+dcglug@xxxxxxxxxx> wrote: > You may also want to consider server-side-includes, if the server supports > it. Especially if you've no 'active' php content on the server - just > static HTML. > > This is how my (poor excuse) of a website www.drogon.net is > constructed... In the index.html file for each topic, there is something > approximating: > > <!--#include file="header.ssi"--> > > <div id="right"> > <!--#include file="rightMenu.ssi"--> > <!--#include file="contactBlock.ssi"--> > <!--#include file="linksBlock.ssi"--> > <!--#include file="devon.ssi"--> > </div> > > A bit less server overhead than running up PHP just to include a few > files... But if you're already using PHP, then that's fine too. For that matter, a fairly simple shellscript could build static HTML files and save having to have any sort of dynamic content. PHP/SSI seem pointless to me if the content you're serving doesn't change too often. A makefile along the lines of: all: $(patsubst %.src,%.html,$(wildcard *.src)) %.html: %.src *.inc cat head.inc $< tail.inc > $@ will convert *.src to *.html by adding head.inc to the top and tail.inc to the bottom. Only files that are modified will be recreated. -- Benjamin M. A'Lee || mail: bma@xxxxxxxxxxxxxx web: http://bma.subvert.org.uk/ || gpg: 0x166891C7 Now, now, dear man, this is not the time to be making enemies. --- Voltaire, on his deathbed when a priest asked him to "renounce Satan"
Attachment:
pgppV3kzLKA25.pgp
Description: PGP signature
-- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html