php file inclusion and it's manipulation
<p>I am sure that sometimes it happens that you may need main file inclusion and when you write this code :</p>

<pre><code>include(dirname(__FILE__) . "/../../core.php");
</code></pre>

<p>it will give you such a error :</p>

<pre><code>Warning: include(../../../db/mysql.php) [function.include]: failed to open stream: No such file or directory in D:\Softwares\wamp\xampp\htdocs\***\db\db.php on line 38
</code></pre>

<p>its clear that in core.php  there is another inclusion for db/mysql  and when we include it from sub directories this problem happens </p>

<p>concider you are in a path like this : <strong>/includes/filemanger/</strong></p>

<p>and you need to connect to your database and core.php needed ! </p>

<p>so how to include core.php in <strong>root path</strong> ? </p>
