<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "SSI doesn't work"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "SSI doesn't work"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>SSI doesn't work</title>
				<description><![CDATA[ Adv. Guestbook. - I have a problem. I want to use server side include on my site but I can't seem to figure out how it works. I can only manage to include the files in the same directory. I want to place a include statement in the header and futter so I don't have to go and update it all the time. How can I include a file that is not in the same directory as the the header and futter file. And so it points to no matter what directury the files are in. Or can I do it in PHP? Please tell me how to do this if you can. And I'm new to SSI and PHP<br /> And is there a way to include a php file inside .shtml page? And is there a way to use include inside the regular .html pages because that's what the heeder and futter are in the adv. Guestbook. Thank you.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2041/5167.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2041/5167.php</link>
				<pubDate><![CDATA[Sat, 14 Jun 2003 04:20:04]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ strip the header and footer.php template files, with the exception of the javascript.<br /> <br /> open up index.php, addentry.php and comment.php and place your code like this.<br /> <br /> [code]&lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * Advanced Guestbook 2.3.1 &#40;PHP/MySQL&#41;<br />  * ----------------------------------------------<br />  */<br /> include&#40;&quot;/path/to/includes/directory/header.htm&quot;&#41;;<br />  <br /> $include_path = dirname&#40;__FILE__&#41;;<br /> include_once $include_path.&quot;/admin/config.inc.php&quot;;<br /> include_once $include_path.&quot;/lib/$DB_CLASS&quot;;<br /> include_once $include_path.&quot;/lib/image.class.php&quot;;<br /> include_once $include_path.&quot;/lib/template.class.php&quot;;<br /> <br /> if &#40;IS_MODULE&#41; &#123;<br /> <br />     if &#40;!eregi&#40;&quot;modules.php&quot;, $HTTP_SERVER_VARS&#91;'PHP_SELF'&#93;&#41;&#41; &#123;<br />         die &#40;&quot;You can't access this file directly...&quot;&#41;;[/code]<br /> <br /> you will place your footer include below the code<br /> <br /> do the same to addentry.php and comment.php<br /> <br /> <br /> after you do this, you will have to edit lib/comment.class.php<br /> <br /> near line 272 you will have to edit it like this.<br /> <br /> <br /> [code]function comment_action&#40;$action=''&#41; &#123;<br />         global $GB_PG;<br />         if &#40;$this-&gt;id && $this-&gt;is_valid_id&#40;&#41; && $action==1&#41; &#123;<br />             $status = $this-&gt;check_comment&#40;&#41;;<br />             if &#40;$status == 1&#41; &#123;<br />                 $this-&gt;insert_comment&#40;&#41;;<br />                 echo &quot;&lt;head&gt; <br />                &lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=http&#58;//www.yourdomain.com/guestbook/\&quot;&gt;&lt;/head&gt;&quot;;<br />             &#125; else &#123;<br />                 echo $status;<br />             &#125;<br />         &#125; elseif &#40;$this-&gt;id && $this-&gt;is_valid_id&#40;&#41;&#41; &#123;<br />             echo $this-&gt;comment_form&#40;&#41;;<br />         &#125; else &#123;<br />             header&#40;&quot;Location&#58; $GB_PG&#91;index&#93;&quot;&#41;;[/code]<br /> <br /> you need to do that, or when someone posts a comment to an entry, the script will complain about headers already sent.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2041/5173.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2041/5173.php</link>
				<pubDate><![CDATA[Sat, 14 Jun 2003 14:54:20]]> GMT</pubDate>
				<author><![CDATA[ Jared]]></author>
			</item>
	</channel>
</rss>