title: Extract uploaded zip file?
body: <p>I have made a form where a file is uploaded:</p>
  
  <pre><code>&lt;form method="post" action="upload.php" enctype="multipart/form-data"&gt;
      &lt;input name="file" type="file"&gt;
      &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now I'm not sure how to write <code>upload.php</code>. I generally expect a .zip file to be uploaded. This file should then be extracted in some temporary directory, and some certain logic should then be performed for each file in it. How do I do that in the most elegant way? It feels like I shouldn't have to move it. Can't I just extract the .zip-file directly in the tmp directory in which PHP puts its uploaded files?</p>