<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: I&#8217;ve discovered SSI</title>
	<atom:link href="http://ilias.ca/blog/2006/03/ive-discovered-ssi/feed/" rel="self" type="application/rss+xml" />
	<link>http://ilias.ca/blog/2006/03/ive-discovered-ssi/</link>
	<description>I still dream of Organon</description>
	<lastBuildDate>Sat, 10 Jul 2010 22:48:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: James</title>
		<link>http://ilias.ca/blog/2006/03/ive-discovered-ssi/comment-page-1/#comment-200</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 06 Mar 2006 09:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://ilias.ca/blog/?p=81#comment-200</guid>
		<description>If you did not want to depend on a server technology to do a runtime include of the files, you could try using Tagneto (http://tagneto.org -- disclaimer, I develop Tagneto).

It can be used as a templating system that is run offline, once, to generate the output content. Since it does not require server-side technology to generate the output, the output could even be served from local disk (allowing you to offer downloadable zip/gz files of the HTML for offline browsing).

It supports including files and even conditional includes, as well as overlays. To inject header content with the overlays, you don&#039;t need to specify an include tag but instead in the tagneticconfig file specify that if the Tagneto engine sees a BODY tag in the source, inject the header content after the BODY tag.

To make Tagneto&#039;s web site, I just use Nvu (http://www.nvu.com) to author plain, vanilla HTML. Then I run that HTML through Tagneto and use overlays to inject the CSS and HTML that creates the style for the site. Right now the style for the site is not very interesting, but I can change it later in the overlays and easily re-style the site.</description>
		<content:encoded><![CDATA[<p>If you did not want to depend on a server technology to do a runtime include of the files, you could try using Tagneto (<a href="http://tagneto.org" rel="nofollow">http://tagneto.org</a> &#8212; disclaimer, I develop Tagneto).</p>
<p>It can be used as a templating system that is run offline, once, to generate the output content. Since it does not require server-side technology to generate the output, the output could even be served from local disk (allowing you to offer downloadable zip/gz files of the HTML for offline browsing).</p>
<p>It supports including files and even conditional includes, as well as overlays. To inject header content with the overlays, you don&#8217;t need to specify an include tag but instead in the tagneticconfig file specify that if the Tagneto engine sees a BODY tag in the source, inject the header content after the BODY tag.</p>
<p>To make Tagneto&#8217;s web site, I just use Nvu (<a href="http://www.nvu.com" rel="nofollow">http://www.nvu.com</a>) to author plain, vanilla HTML. Then I run that HTML through Tagneto and use overlays to inject the CSS and HTML that creates the style for the site. Right now the style for the site is not very interesting, but I can change it later in the overlays and easily re-style the site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glob</title>
		<link>http://ilias.ca/blog/2006/03/ive-discovered-ssi/comment-page-1/#comment-199</link>
		<dc:creator>glob</dc:creator>
		<pubDate>Mon, 06 Mar 2006 03:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://ilias.ca/blog/?p=81#comment-199</guid>
		<description>duh :)


you can SSI any page, including .cgi

use envrionment variables to pass information into the SSI.

you can nest SSI


a major problem with using ssi for the header is you end up with every page having the same title.

a way around this is:

&lt;!--#set var=&quot;title&quot; value=&quot;whatever&quot; -&gt;
&lt;!--#include virtual=&quot;header.shtml&quot; --&gt;

and in header.shtml:

&lt;title&gt;&lt;!--#echo encoding=&quot;none&quot; var=&quot;title&quot; --&gt;&lt;/title&gt;</description>
		<content:encoded><![CDATA[<p>duh <img src='http://ilias.ca/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>you can SSI any page, including .cgi</p>
<p>use envrionment variables to pass information into the SSI.</p>
<p>you can nest SSI</p>
<p>a major problem with using ssi for the header is you end up with every page having the same title.</p>
<p>a way around this is:</p>
<p>&lt;!&#8211;#set var=&#8221;title&#8221; value=&#8221;whatever&#8221; -&gt;<br />
&lt;!&#8211;#include virtual=&#8221;header.shtml&#8221; &#8211;&gt;</p>
<p>and in header.shtml:</p>
<p>&lt;title&gt;&lt;!&#8211;#echo encoding=&#8221;none&#8221; var=&#8221;title&#8221; &#8211;&gt;&lt;/title&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dao</title>
		<link>http://ilias.ca/blog/2006/03/ive-discovered-ssi/comment-page-1/#comment-198</link>
		<dc:creator>Dao</dc:creator>
		<pubDate>Sun, 05 Mar 2006 18:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://ilias.ca/blog/?p=81#comment-198</guid>
		<description>Anonymous:

I only wanted to put my idea across. Of course, if you don&#039;t work with .php files (as I do) but .html, file_get_contents() is better than include(). But in any case, one should always check if $_SERVER[&#039;REDIRECT_URL&#039;] is valid.</description>
		<content:encoded><![CDATA[<p>Anonymous:</p>
<p>I only wanted to put my idea across. Of course, if you don&#8217;t work with .php files (as I do) but .html, file_get_contents() is better than include(). But in any case, one should always check if $_SERVER['REDIRECT_URL'] is valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://ilias.ca/blog/2006/03/ive-discovered-ssi/comment-page-1/#comment-197</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 05 Mar 2006 13:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://ilias.ca/blog/?p=81#comment-197</guid>
		<description>Thats a bad idea:

include $_SERVER[&#039;REDIRECT_URL&#039;].&#039;/index.html&#039;;

A better one:

$handle = fopen ($_SERVER[&#039;REDIRECT_URL&#039;].&#039;/index.html&#039;, &quot;r&quot;);
while (!feof($handle)) {
   $buffer = fgets($handle, 4096);
   echo $buffer;
}
fclose ($handle);

It is more secure to use fopen than to use include which could lead to a massive security hole.</description>
		<content:encoded><![CDATA[<p>Thats a bad idea:</p>
<p>include $_SERVER['REDIRECT_URL'].&#8217;/index.html&#8217;;</p>
<p>A better one:</p>
<p>$handle = fopen ($_SERVER['REDIRECT_URL'].&#8217;/index.html&#8217;, &#8220;r&#8221;);<br />
while (!feof($handle)) {<br />
   $buffer = fgets($handle, 4096);<br />
   echo $buffer;<br />
}<br />
fclose ($handle);</p>
<p>It is more secure to use fopen than to use include which could lead to a massive security hole.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dao</title>
		<link>http://ilias.ca/blog/2006/03/ive-discovered-ssi/comment-page-1/#comment-196</link>
		<dc:creator>Dao</dc:creator>
		<pubDate>Sun, 05 Mar 2006 12:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://ilias.ca/blog/?p=81#comment-196</guid>
		<description>Maybe you should discover mod_rewrite:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*/$ /index.php

And PHP:

&lt;!-- header --&gt;
&lt;?php
include $_SERVER[&#039;REDIRECT_URL&#039;].&#039;/index.html&#039;;
?&gt;
&lt;!-- footer --&gt;

This way, you don&#039;t have to include your site header on every single page because the content gets included.</description>
		<content:encoded><![CDATA[<p>Maybe you should discover mod_rewrite:</p>
<p>RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule ^.*/$ /index.php</p>
<p>And PHP:</p>
<p>&lt;!&#8211; header &#8211;&gt;<br />
&lt;?php<br />
include $_SERVER['REDIRECT_URL'].&#8217;/index.html&#8217;;<br />
?&gt;<br />
&lt;!&#8211; footer &#8211;&gt;</p>
<p>This way, you don&#8217;t have to include your site header on every single page because the content gets included.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
