php require_once resetting to current working directory
<p>This is a longshot but I have a file with something like this:</p>

<p>document structure:
/some/path/start.php</p>

<pre><code>&lt;?php
require_once '../../another/path/test.php';
?&gt;
</code></pre>

<p>and </p>

<p>/another/path/test.php
/another/path/images/</p>

<pre><code>&lt;?php 
test.php
hello&lt;img src='images/1.jpg'&gt;
?&gt;
</code></pre>

<p>I'm looking for a way for the required file (test.php) to correctly load the images (essentially reset what it believes to be the currrent directory). I don't want to force people to use absolue paths and really don't want to add some variable in there. Is there a php construct to handle this? I'm using Zend_Framework. Maybe the reverse, a construct to have multiple index.php files that map via absolute paths to my starter script for Zend Framework. </p>

<p>Any ideas would be appreciated? I have the following there's an elegant sol'n - I'm just not seeing it.</p>
