Login   Register  
PHP Classes
elePHPant
Icontem

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of M H Rasel  >  Online zip modifier  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: The example
Class: Online zip modifier
Modify the files in a ZIP archive
Author: By
Last change:
Date: 2009-01-21 23:54
Size: 382 bytes
 

Contents

Class file image Download
<?php
require "zip.class.php"// Get the zipfile class
$zipfile = new zipfile// Create an object
$zipfile->read_zip("myzip.zip"); // Read the zip file

// Now, $zipfile->files is an array containing information about the files
// Here is an example of it's use

foreach($zipfile->files as $filea)
{
    echo 
"The contents of {$filea['name']}:\n{$file['data']}\n\n";
}
?>