title: How to open a folder that exists inside a zip file with PHP and put content/files inside it
body: <p>How can one open a folder which exists inside a zip file with PHP, as in the following example:</p>
  
  <pre><code>$zip = new ZipArchive();
  $tmp_file = tempnam('.', '');
  $zip-&gt;addEmptyDir($folder);
  </code></pre>
  
  <p>Lets say I want open $folder I have just created so I can put content inside it</p>
  
  <p>Note: <code>$zip-&gt;open ($folder);</code> doesn't work with me</p>
  
  <p>I want to put my files inside said folder which exists inside said zip file.</p>
  
  <p>Thanks</p>