How to Include Properly
<pre><code>; Windows: "\path1;\path2"
include_path = “.;C:\xampp\php\PEAR;C:\xampp\php\Zend;C:\xampp\htdocs\rpg_historian;”
</code></pre>

<p>Above you will find the address to my include path in php.ini on my xampp server. I want to be able to include files from a folder called "includes" that is nested in my project rpg_historian. In PHP when I use -</p>

<pre><code>&lt;?php include('includes/header.php'); ?&gt;
</code></pre>

<p>The page works and loads correctly. However, if I click on a link that sends me INSIDE of includes/ I end up in a position where the page will state -</p>

<pre><code>&gt; Object not found!
&gt; 
&gt; The requested URL was not found on this server. The link on the
&gt; referring page seems to be wrong or outdated. Please inform the author
&gt; of that page about the error.
&gt; 
&gt; If you think this is a server error, please contact the webmaster.
&gt; 
&gt; Error 404
&gt; 
&gt; localhost 10/06/12 09:46:58 Apache/2.2.21 (Win32) mod_ssl/2.2.21
&gt; OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
</code></pre>

<p>And my URL becomes <code>http://localhost/rpg_historian/includes/index.php</code> which is NOT where index.php is located. index.php is located in the root of rpg_historian. How do I go about setting up a system where I can easily set includes? I have tried the instructions located -
<a href="http://www.geeksengine.com/article/php-include-path.html" rel="nofollow">http://www.geeksengine.com/article/php-include-path.html</a></p>

<p>But for what ever reason even after setting the include path; It still doesn't want to work correctly. Can someone explain to me how to set up a proper PHP include system that allows me to easily access files from folders? My understanding is that PHP is intelligent enough to cascade through folders to "find things" if set up properly.</p>
