change parent file (for including)
<p>i got 3 files that every one of them is in different folders..</p>

<p>A.php , B.php , C.css .</p>

<p>First , i use A.php to import B.php </p>

<p>A.php:</p>

<pre><code>include ('second_folder/B.php');
</code></pre>

<p>second , <strong>i use B.php</strong> to import C.css :</p>

<pre><code>include ('second_folder/third_folder/B.php');
</code></pre>

<p>as you can see , i had to write down "second_folder" cause of the parent file is A.php.</p>

<p>how can i pass the "parenting" from A.php to B.php that i would can be write in B.php like that:</p>

<pre><code>include ('third_folder/B.php');
</code></pre>

<p>thank you in advance.</p>
