<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Inclusion</title>
	<link>http://pootato.org/tutorials/php/inclusion/</link>
	<description>Tutorials for your website</description>
	<pubDate>Sat, 11 Oct 2008 23:49:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: ben</title>
		<link>http://pootato.org/tutorials/php/inclusion/#comment-267</link>
		<author>ben</author>
		<pubDate>Thu, 29 Nov 2007 22:55:42 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/inclusion/#comment-267</guid>
		<description>I got my php to work but i can't go to any subpages. I link to let's say subpage/page.php and then the page has no css no header and no footer but it works with pages that aren't in any folder.</description>
		<content:encoded><![CDATA[<p>I got my php to work but i can&#039;t go to any subpages. I link to let&#039;s say subpage/page.php and then the page has no css no header and no footer but it works with pages that aren&#039;t in any folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clara</title>
		<link>http://pootato.org/tutorials/php/inclusion/#comment-27</link>
		<author>Clara</author>
		<pubDate>Wed, 22 Aug 2007 10:56:43 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/inclusion/#comment-27</guid>
		<description>Hi Trine, in your menu.php, I recommend you using this link structure:

&lt;code&gt;&#60;a href="/index.php"&#62;main page&#60;/a&#62;&lt;br /&gt;&#60;a href="/subpage/page.php"&#62;sub page&#60;/a&#62;&lt;/code&gt;

etc. Instead of rewriting all the URLs, start the link with a slash (that brings you to your site root) then put your folder path. This way, you won't have to rewrite them :)</description>
		<content:encoded><![CDATA[<p>Hi Trine, in your menu.php, I recommend you using this link structure:</p>
<p><code>&lt;a href="/index.php"&gt;main page&lt;/a&gt;<br />&lt;a href=&#034;/subpage/page.php&#034;&gt;sub page&lt;/a&gt;</code></p>
<p>etc. Instead of rewriting all the URLs, start the link with a slash (that brings you to your site root) then put your folder path. This way, you won&#039;t have to rewrite them :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trine</title>
		<link>http://pootato.org/tutorials/php/inclusion/#comment-23</link>
		<author>Trine</author>
		<pubDate>Wed, 22 Aug 2007 08:18:01 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/inclusion/#comment-23</guid>
		<description>I have a question... What about directories? Say I have footer.php, top.php and menu.php in the root directory, but I have some files in the /articles directory. Do I have to link to the inclusion files with ../ from the files in that directory, or is there another way?

The problem would be that I'd need to write the entire url (http://...) to all the links in the menu, for any images and so on, that is within the inclusion files. Or is it simply best to have all the files in the same directory? Which would create a lot of chaos...

Thanks for your time =)

Trine</description>
		<content:encoded><![CDATA[<p>I have a question&#8230; What about directories? Say I have footer.php, top.php and menu.php in the root directory, but I have some files in the /articles directory. Do I have to link to the inclusion files with ../ from the files in that directory, or is there another way?</p>
<p>The problem would be that I&#039;d need to write the entire url (http://&#8230;) to all the links in the menu, for any images and so on, that is within the inclusion files. Or is it simply best to have all the files in the same directory? Which would create a lot of chaos&#8230;</p>
<p>Thanks for your time =)</p>
<p>Trine</p>
]]></content:encoded>
	</item>
</channel>
</rss>
