php change directory to base directory
<p>i change the dir to the current file directory to :</p>

<pre><code>chdir(dirname(__FILE__));
</code></pre>

<p>But how do i change it back to the base director like <code>/</code> in linux and say <code>C:</code> in windows i dont know that is the OS of the user.</p>

<p>Is there a way to do it in both linux and win ?</p>
