title: unable to upload files from different directory
body: <p>file.php - Here is a html code, which allows the user to select multiple files for uploading.</p>
  
  <pre><code>&lt;html&gt;  
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;&lt;/title&gt;  
  &lt;/head&gt;  
  &lt;body&gt;  
      &lt;form method="post" enctype="multipart/form-data"  action="file2.php"&gt;  
          &lt;input type="file" name="zipfile[]" multiple /&gt;  
          &lt;br /&gt;&lt;br /&gt;
          &lt;button type="submit"&gt;Upload selected files&lt;/button&gt;  
      &lt;/form&gt;  
  &lt;/body&gt;  
  &lt;/html&gt;
  </code></pre>
  
  <p>file2.php - Here I tried to zip the multiple files which was selected before uploading, the problem is when I select the files for uploading from the current working directory, the files and zipped and uploaded. But when i select files from different directory other than the current working directory, files are not getting zipped and uploaded. thats the issue.</p>
  
  <pre><code>    &lt;? $zeep = new ZipArchive;
  $fyle = Array();
  $zeep-&gt;open('zip/try.zip',  ZipArchive::CREATE);
  foreach($_FILES['zipfile']['tmp_name'] as $fyl) {
      foreach($_FILES['zipfile']['name'] as $fyle) {
  
      echo $fyle;
      $zeep-&gt;addFile($fyl,$fyle);
      echo "&lt;br/&gt;";
  }
  }
  $zeep-&gt;close();
  ?&gt;
  </code></pre>