[support] ZipArchive is not working

Swatee Karpe swateekarpe at gmail.com
Mon Jan 27 07:20:24 UTC 2014


Hi all,

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.

For this I am trying to use ZipArchive class.

 $zip = new ZipArchive;

 $unzip = $zip->open($filename);

ZipArchive Object
(
    [status] => 0
    [statusSys] => 0
    [numFiles] => 0
    [filename] =>
    [comment] =>

)

After printing $zip i get the empty array as above.

Do any one know why this is not working in my case?
Or any one know other way to extract file and save it to folder.

Thanks in advance.
--
Swatee Amit Karpe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140127/2d882088/attachment.html 


More information about the support mailing list