PHP Classes

File: example2.php

Recommend this page to a friend!
  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: 13 years ago
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";
}
?>

For more information send a message to info at phpclasses dot org.