<?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: PHP Include Tutorial</title>
	<atom:link href="http://www.learnphponline.com/php-basics/php-include-tutorial/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learnphponline.com/php-basics/php-include-tutorial</link>
	<description>Learn PHP Online</description>
	<lastBuildDate>Fri, 23 Dec 2011 17:09:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: mjs</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-13171</link>
		<dc:creator>mjs</dc:creator>
		<pubDate>Thu, 08 Sep 2011 20:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-13171</guid>
		<description>hi there i must say thank you a lot for this info, just what i needed but.....
i have another problem!! wanting to include in multiple pages a search menu, build with script ( &lt;form action=.................... ) So how do we deal with this?
I mean simply putting the &lt;a href= funtion will not work with this unless i`m doing something wrong. if you have a solution i would be thankfull.
Meanwhile keep up with the site :).</description>
		<content:encoded><![CDATA[<p>hi there i must say thank you a lot for this info, just what i needed but&#8230;..<br />
i have another problem!! wanting to include in multiple pages a search menu, build with script ( &lt;form action=&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. ) So how do we deal with this?<br />
I mean simply putting the &lt;a href= funtion will not work with this unless i`m doing something wrong. if you have a solution i would be thankfull.<br />
Meanwhile keep up with the site <img src='http://www.learnphponline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AFSAL CMK</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-13101</link>
		<dc:creator>AFSAL CMK</dc:creator>
		<pubDate>Sun, 04 Sep 2011 04:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-13101</guid>
		<description>Hey, I made a PHP include file in a folder called &#039;include bin&#039; with some images in it. And, I create a new folder named &#039;my pages&#039;. hen I created some php pages in it. Then in these PHP files, I included the first created Include PHP file located in the &#039;include bin&#039;. But when I tested my pages in the folder &#039;my pages&#039;, everything was ok. But, Image doesn&#039;t show. I know its not the server&#039;s or browser problem. I think it is directory problem, then do I need to place include file in each directory? or what? Please help me to show the images.</description>
		<content:encoded><![CDATA[<p>Hey, I made a PHP include file in a folder called &#8216;include bin&#8217; with some images in it. And, I create a new folder named &#8216;my pages&#8217;. hen I created some php pages in it. Then in these PHP files, I included the first created Include PHP file located in the &#8216;include bin&#8217;. But when I tested my pages in the folder &#8216;my pages&#8217;, everything was ok. But, Image doesn&#8217;t show. I know its not the server&#8217;s or browser problem. I think it is directory problem, then do I need to place include file in each directory? or what? Please help me to show the images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaxxed</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-10759</link>
		<dc:creator>jaxxed</dc:creator>
		<pubDate>Tue, 19 Apr 2011 19:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-10759</guid>
		<description>Please note that when including paths are relative to request root.  If you include() from an included file, the path is relative to the first file opened, not the current file.

file1.php:


/includedfiles/file2.php:


HERE: file3.php should sit next to file1.php, not in &#039;/includedfiles&#039; next to file2.php</description>
		<content:encoded><![CDATA[<p>Please note that when including paths are relative to request root.  If you include() from an included file, the path is relative to the first file opened, not the current file.</p>
<p>file1.php:</p>
<p>/includedfiles/file2.php:</p>
<p>HERE: file3.php should sit next to file1.php, not in &#8216;/includedfiles&#8217; next to file2.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramanakumar</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-10682</link>
		<dc:creator>Ramanakumar</dc:creator>
		<pubDate>Sun, 17 Apr 2011 08:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-10682</guid>
		<description>Thanks a lot for this tutorial. Was wondering where I could use the include function. Your security risks really helped me!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this tutorial. Was wondering where I could use the include function. Your security risks really helped me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyn Snow</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-6396</link>
		<dc:creator>Wyn Snow</dc:creator>
		<pubDate>Tue, 11 Jan 2011 19:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-6396</guid>
		<description>Corrected code for including the header.php file (needs opening &lt;?php in front of the include statement):



</description>
		<content:encoded><![CDATA[<p>Corrected code for including the header.php file (needs opening &lt;?php in front of the include statement):</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Khan</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-2626</link>
		<dc:creator>Joe Khan</dc:creator>
		<pubDate>Fri, 16 Jul 2010 09:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-2626</guid>
		<description>Instead of getting confused with all the ../ you should use:
include $_SERVER[&#039;document_root&#039;].&#039;/includes/header.php&#039;;

this is return can be used on any file in any directory without the need of editing.</description>
		<content:encoded><![CDATA[<p>Instead of getting confused with all the ../ you should use:<br />
include $_SERVER['document_root'].&#8217;/includes/header.php&#8217;;</p>
<p>this is return can be used on any file in any directory without the need of editing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mell</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-2111</link>
		<dc:creator>Mell</dc:creator>
		<pubDate>Fri, 21 May 2010 06:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-2111</guid>
		<description>Hi,

I have created a menu using html with css style sheets and it&#039;s basically a rolll over menu. I have saved it as menu.php
I created another page and added content to itt and wanted to bring the menu into. This page is index.php 
The problem is that I am using eactly what the tutorial says but it&#039;s not working for some reason. Any ideas on how to fix it??</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have created a menu using html with css style sheets and it&#8217;s basically a rolll over menu. I have saved it as menu.php<br />
I created another page and added content to itt and wanted to bring the menu into. This page is index.php<br />
The problem is that I am using eactly what the tutorial says but it&#8217;s not working for some reason. Any ideas on how to fix it??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-2107</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Thu, 20 May 2010 19:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-2107</guid>
		<description>I am working with a Dreamweaver php page trying to include a state specific file on a generic state page. 
Based on the State abbreviation I want it to include the state file with the state data. 
$row_getResorts[&#039;state&#039;] is where the state abbrevaitions are in the database.
So for example Alabama&#039;s data would be AL.php

1.

Warning: include(.php) [function.include]: failed to open stream: No such file or directory in etc
2.

Warning: include(.php) [function.include]: failed to open stream: No such file or directory in etc
3.

Parse error: syntax error, unexpected T_ECHO in etc
4.

Parse error: syntax error, unexpected T_ECHO in etc
5.

Parse error: syntax error, unexpected T_ECHO in etc


6.

Fatal error: Call to undefined function file_exsists() 

This should be so easy. What am I doing wrong so I can get anyon eof these to work?
Thanks, AL</description>
		<content:encoded><![CDATA[<p>I am working with a Dreamweaver php page trying to include a state specific file on a generic state page.<br />
Based on the State abbreviation I want it to include the state file with the state data.<br />
$row_getResorts['state'] is where the state abbrevaitions are in the database.<br />
So for example Alabama&#8217;s data would be AL.php</p>
<p>1.</p>
<p>Warning: include(.php) [function.include]: failed to open stream: No such file or directory in etc<br />
2.</p>
<p>Warning: include(.php) [function.include]: failed to open stream: No such file or directory in etc<br />
3.</p>
<p>Parse error: syntax error, unexpected T_ECHO in etc<br />
4.</p>
<p>Parse error: syntax error, unexpected T_ECHO in etc<br />
5.</p>
<p>Parse error: syntax error, unexpected T_ECHO in etc</p>
<p>6.</p>
<p>Fatal error: Call to undefined function file_exsists() </p>
<p>This should be so easy. What am I doing wrong so I can get anyon eof these to work?<br />
Thanks, AL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @Arch</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-1622</link>
		<dc:creator>@Arch</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-1622</guid>
		<description>Yes, ../ is for a unix user. Try ..\\ if you feel more comfortable with DOS/Windows.</description>
		<content:encoded><![CDATA[<p>Yes, ../ is for a unix user. Try ..\\ if you feel more comfortable with DOS/Windows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.learnphponline.com/php-basics/php-include-tutorial/comment-page-1#comment-1425</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 13 Jan 2010 12:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=26#comment-1425</guid>
		<description>I am not getting any good results for the &quot;include&quot; PHP code here and I can&#039;t figure it out.

This is the PHP code I put into my index.php page: 

I made the two PHP pages in Notepad exactly as it is above and opened it straight in my browser and the links do not show at all.

For something apparently so simple, I am spending way too much time on learning PHP. 

I also, after a lot of research, downloaded XAMPP, but I haven&#039;t touched it yet because for an absolute beginner with PHP, it is basically learning Japanese.</description>
		<content:encoded><![CDATA[<p>I am not getting any good results for the &#8220;include&#8221; PHP code here and I can&#8217;t figure it out.</p>
<p>This is the PHP code I put into my index.php page: </p>
<p>I made the two PHP pages in Notepad exactly as it is above and opened it straight in my browser and the links do not show at all.</p>
<p>For something apparently so simple, I am spending way too much time on learning PHP. </p>
<p>I also, after a lot of research, downloaded XAMPP, but I haven&#8217;t touched it yet because for an absolute beginner with PHP, it is basically learning Japanese.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

