title: Moving up a directory
body: <p>I'm creating a directory in a php script, moving into that directory and doing some stuff. This part works fine.</p>
  
  <p>Now, I want to move out of this directory and delete it.
  Any pointers on how to do this?</p>
  
  <p>I have tried moving up 1 level, but it doesnt work</p>
  
  <pre><code>chdir("../");
  chdir("..")
  system("cd ..");
  </code></pre>
  
  <p>none of the above have any effect on the present working directory</p>