PHP Classes
elePHPant
Icontem

Create Multiple seperate zip files in a loop

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Create ZIP File  >  All threads  >  Create Multiple seperate zip files...  >  (Un) Subscribe thread alerts  
Subject:Create Multiple seperate zip files...
Summary:loop issue fix
Messages:1
Author:Andrew
Date:2011-03-30 11:06:57
 

  1. Create Multiple seperate zip files...   Reply   Report abuse  
Picture of Andrew Andrew - 2011-03-30 11:06:57
Be sure to add this function to the CreateZipFile.inc.php

Then at the end of each loop run it to clear the variables.

public function ClearZipped() {
$this->compressedData = array();
$this->centralDirectory = array();
}