<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->open($filename);</div><div><br></div><div><pre>ZipArchive Object
(
[status] => 0
[statusSys] => 0
[numFiles] => 0
[filename] =>
[comment] => </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>