title: how to use chdir to change to current directory?
body: <p>I'm trying to include a file from another directory and then change the chdir back to the current/original form.</p>
  
  <pre><code>chdir('/some/path');
  include(./file.php);
  chdir();//How to I change the directory back to the original form?
  </code></pre>
  
  <p>Anyway to change the chdir back to where file.php is located? or do I have to do it manually?</p>