A PHP include path explanation
<p>So I'm not exactly new to PHP but this has me really stumped.</p>

<p>My understanding of the PHP include paths is, when you set the paths, whether it be by ini, htaccess or set_include_path, so long as what is included is in one of those paths PHP should be able to find it. Example...</p>

<p>Directory structure.  </p>

<ul>
<li>folderA
<ul>
<li>fileA.php</li>
</ul></li>
<li>folderB
<ul>
<li>fileB.php</li>
</ul></li>
</ul>

<p>Assuming I set the include path to be ... /folderA; /folderB</p>

<p>Then write an include in fileA like so </p>

<h2>----- fileA -----</h2>

<pre><code>&lt;$php 
     include 'fileB.php'; 
</code></pre>

<p>PHP should be able to find fileB. Is this correct?  </p>

<p>Let me rephrase. If a file is in the include path, a relative path should be unnecessary ?</p>
