Update Zip files in yii

Update Zip Files Using PHP

I added the source code to add new file into existing zip files.


public function actionUpdatezip($zipfilename,$filelist){
     $zip=new ZipArchive();
     if(!$zip->open($destination)) {
             return false;
         foreach($filelist as $thefile)
         $filemodel=new Filesmodle;   
         $filename=$randno.$thefile->name;   // yii magic method   

Leave a Reply

Your email address will not be published. Required fields are marked *