Changing Base Path In PHP
<p>I need to change the folder that "relative include paths" are based on.</p>

<p>I might currently be "in" this folder:
C:\ABC\XYZ\123\ZZZ</p>

<p>And in this case, the path "../../Source/SomeCode.php" would actually be in this folder:
C:\ABC\XYZ\Source</p>

<p>And realpath('.') would = 'C:\ABC\XYZ\123\ZZZ';</p>

<p>If however, realpath('.') were "C:\Some\Other\Folder"</p>

<p>Then in this case, the path "../../Source/SomeCode.php" would actually be in this folder:
C:\Some\Source</p>

<p>How do I change what folder is represented by '.' in realpath()?</p>

<p>Like this:</p>

<pre><code>echo ('BEFORE = '.realpath('.')); // BEFORE = C:\ABC\XYZ\123\ZZZ
// Some PHP code here...
echo ('AFTER = '.realpath('.')); // AFTER = C:\Some\Other\Folder
</code></pre>

<p>How can I change the folder represented by '.', as seen by realpath()?</p>
