MC writes:
> I will try to get this one in quick while the list is new! (but it has me stuck a while). Maybe just html.
> Is there an easy way to get a page to pull in another file (like maybe to put
> something like a sig at the bottom of every page, rather than inserting it
> into every .html file)? This occurred to me while trying to access a script
> (e.g. to print time and date/counter), but without typing the script in every
> page. I can see how to include jpgs, and so forth... but text has me stumped.
> hope this doesn't lower the tone too much,
One way of doing this is SSI, server side includes. E.g. at the bottom of
every page:
<!--#include virtual="/common/trailer.shtml" -->
Check out the mod_include section in the Apache manual.
SSI is quite neat. It allows, for instance, to set variables at the top
of every page, and then, in trailer.shtml, take different paths depending
on the values of these variables.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!