title: PHP extract zip
body: <p>I have a zip file with some files and folders inside, and I want to extract the contents of the folder "/files" from the zip file to the a specified path (the root path of my application).</p>
  
  <p>If there is a non existing folder it should just be created.</p>
  
  <p>So for example if the path inside the zip is: "/files/includes/test.class.php" it should be extracted to </p>
  
  <pre><code>$path . "/includes/test.class.php"
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p>The only function i found to switch inside the zip file should be </p>
  
  <p><a href="http://www.php.net/manual/en/ziparchive.getstream.php" rel="nofollow">http://www.php.net/manual/en/ziparchive.getstream.php</a></p>
  
  <p>but i actually don't know how i can do that with this function.</p>