1 (edited by nakome 2012-12-15 18:28:15)

Topic: Unzip files

I have placed this code in plugin.install.php.

    $file = PLUGINS.DS.'simple/simple.zip';
    $path = THEMES_SITE.DS.'simple';
    $zip = new ZipArchive;
    $res = $zip->open($file);
    $zip->extractTo($path);
    $zip->close();

is correct?

Is that I do not know how to do it with Zip::factory();

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Unzip files

Unziping http://php.net/manual/ru/class.ziparchive.php

>Is that I do not know how to do it with Zip::factory();
Impossible in current Monstra Version

Monstra Loves You! Give some love back!

Re: Unzip files

Thanks,This code works, I've tried, I just wanted to use Zip::factory.
Regards.

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website