PHP Classes
elePHPant
Icontem

File: sample2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sext  >  PHPZip  >  sample2.php  >  Download  
File: sample2.php
Role: Example script
Content type: text/plain
Description: Put all files from list in ZIP archive
Class: PHPZip
Makes zip archive
Author: By
Last change: Fixed some bugs
Date: 12 years ago
Size: 247 bytes
 

Contents

Class file image Download
<?
   
# Put all files from file list in ZIP archive

   
require("phpzip.inc.php");

   
$z = new PHPZip();

   
# Create File List
   
$files[]="phpzip.inc.php";
   
$files[]="sample1.php";
   
$files[]="sample2.php";

   
$z -> Zip($files, "out2.zip");
?>