Re: CSS tuition/reference - and #include



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'
--
.



Relevant Pages

  • Re: IIS Host Header Name ?
    ... > Can anybody tell me what the Host Header Name in IIS setting is for? ... Enables a web server to serve multiple sites from one ip-address. ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • Re: cant see SSI in preview
    ... as the page must be displayed in a browser from a web server that supports SSI. ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ...
    (microsoft.public.frontpage.client)
  • Re: Load Time for Pages With SS Includes
    ... > Older versions of IIS, for example, required all SSI pages to end in .asp ... > required all SSI pages to end in .asp and be handled by the ASP engine. ... > the web server to process the page, at least initially, but most will ...
    (microsoft.public.frontpage.client)
  • Re: problem with validated site
    ... Back in 1997, when I was first learning very basic HTML, we had some pages in the Counselling Centre at the University of Northern BC that used SSI. ... I will have to find out if my web server supports SSI. ... It does support cgi scripts, so it probably would support SSI. ...
    (comp.infosystems.www.authoring.html)