PHP Classes

Unzip with folder structure intact

Recommend this page to a friend!

      Zip File  >  All threads  >  Unzip with folder structure intact  >  (Un) Subscribe thread alerts  
Subject:Unzip with folder structure intact
Summary:Preserve folder structure if unzipping the file
Messages:3
Author:ron c
Date:2008-02-02 09:19:49
Update:2010-03-14 17:08:56
 

  1. Unzip with folder structure intact   Reply   Report abuse  
Picture of ron c ron c - 2008-02-02 09:19:50
Great Class!

But, How do I do this?

  2. Re: Unzip with folder structure intact   Reply   Report abuse  
Picture of ron c ron c - 2008-02-02 09:38:43 - In reply to message 1 from ron c
I got it now. Again, great PHP class!

  3. Re: Unzip with folder structure intact   Reply   Report abuse  
Picture of Keinier Keinier - 2010-03-14 17:08:56 - In reply to message 2 from ron c
Hello, I do not speak English but I'm doing everything possible. Finally, I found no documentation of this fantastic class php, testing and investic the source code I noticed that the class returns the file contents. in the example is clearer.

<?php
require "zip.class.php"; // Get the zipfile class

$zip = new zipfile; // create a object

$zip->read_zip("myzip.zip"); // read file

$f = fopen($zip->filea['name'],"wb"); // create a file

fwrite($f,filea['data']);

fclose($f);

?>