<div dir="ltr">Hi all,<div><br></div><div>I am using drupal 7 and I want extract the zip file and save the extracted folder into files directory. I am taking zip file from one of my content type.</div><div><br></div><div>For this I am trying to use ZipArchive class. </div>
<pre><span style="font-family:arial"> $zip = new ZipArchive;</span><br></pre><div><div> $unzip = $zip-&gt;open($filename);</div><div><br></div><div><pre>ZipArchive Object
(
    [status] =&gt; 0
    [statusSys] =&gt; 0
    [numFiles] =&gt; 0
    [filename] =&gt; 
    [comment] =&gt;  </pre><div>)</div></div><div><br></div><div>After printing $zip i get the empty array as above.<br></div><div><br></div><div>Do any one know why this is not working in my case?</div><div>Or any one know other way to extract file and save it to folder.</div>
<div><br></div><div>Thanks in advance.</div><div>--</div><div dir="ltr">Swatee Amit Karpe<br><br></div>
</div></div>