Finding the path from the ROOT url
<p>I have file say config.php which is stored in a user defined folder like /abc/def/config.php</p>

<p>Now this file is included by another file like /test.php and this file is called in the browser.</p>

<p>Now I want to find the path of the config.php from the root site. Usually we can use SCRIPT_FILENAME. But that is not possible because that will be related to test.php and not config.php.</p>

<p>So I call <a href="http://www.abc.com/test.php" rel="nofollow">http://www.abc.com/test.php</a>
which includes <a href="http://www.abc.com/abc/def/config.php" rel="nofollow">http://www.abc.com/abc/def/config.php</a>
and I want the following: "/abc/def/"</p>

<p>How do I get this?</p>

<p>Thank you for your time.</p>
