Re: CSS tuition/reference - and #include
- From: Andrew Collier <spambucket@xxxxxxxxxxxxxxxx>
- Date: Wed, 09 Apr 2008 22:47:40 +0100
In article <0001HW.C422BB7800B73D14F0182648@xxxxxxxxxxxxxxxxxxx>,
Hugh Browton <useneth@**.not.uk> wrote:
On Wed, 9 Apr 2008 18:12:42 +0100, Chris Ridd wrote
(in article <664boaF2hsc2dU1@xxxxxxxxxxxxxxxxxx>):
On 2008-04-09 18:06:05 +0100, Hugh Browton <useneth@**.not.uk> said:
<!--#include file="foobar.ext"-->
That notation relies on something called server-side includes, which
may or may not be enabled on a given web server. Jolly useful when it
is of course :-)
It does seem like a neat way to include common material.
You may find that the SSI is turned on in the web server, but not
enabled for your files.
There are various ways to fix that - I'm afraid I can't give you
specific directions because the configuration of a web server is a huge
and monstrously complex task, and every web host in the world probably
does it slightly differently. But some common ways to turn on
server-parsing are:
- save files as .shtml instead of .html
- set the 'executable' permissions bit on the file
- add a .htaccess file which enables the appropriate options
Finally, some web hosts may have abandoned SSI in favour of offering PHP
instead - this is another complex system, but it does everything SSI can
and more (with a different syntax). For example, in PHP including a file
would be:
<?php include ("foobar.ext"); ?>
HTH,
Andrew
--
--- Andrew Collier ---- To reply by email, please use:
---- http://www.intensity.org.uk/ --- 'andrew {at} intensity.org.uk'
--
.
- References:
- CSS tuition/reference - and #include
- From: Hugh Browton
- Re: CSS tuition/reference - and #include
- From: Chris Ridd
- Re: CSS tuition/reference - and #include
- From: Hugh Browton
- CSS tuition/reference - and #include
- Prev by Date: Re: Alternatives to news.individual.net
- Next by Date: Re: CSS tuition/reference - and #include
- Previous by thread: Re: CSS tuition/reference - and #include
- Next by thread: Re: CSS tuition/reference - and #include
- Index(es):
Relevant Pages
|