|
Posted by Jonathan N. Little on 03/01/07 14:38
Andy Dingley wrote:
> On 28 Feb, 21:35, Jim S <j...@jimXscott.co.uk> wrote:
>
>> AND I don't think my server supports them.
>
> Have you _tried_? It's the easiest way to find out.
>
Note though Jim, most likely to get SSI to work many servers are
configured such that the file extension needs to be 'shtml' not 'html'
and are restricted to the 'virtual' function on includes:
## test.shtml ##
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test SSI</title>
</head>
<body>
<p>Next paragraph is included</p>
<!--#include virtual="insert.html" -->
</body>
</html>
## insert.html ##
<p>I am the included file</p>
Note: on the included bits, don't duplicate HTML, HEAD, BODY, ...
elements... just put in the bits you need to make a complete document.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|