PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Pascal Rehfeldt  >  ZIPlib  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: demonstrates the class
Class: ZIPlib
Class to generate ZIP files.
Author: By
Last change:
Date: 19 years ago
Size: 535 bytes


Class file image Download

//Start Output buffering

//Load the Library

//Generate a new object
$zipfile = new zipfile('','./DeepDir.php', './extendedfpdf.php');

//Add a plain text file as pdf
$zipfile->addFileAsPDF('testfiles/plain_text.txt', 'Title', 'Author');

//Add a complete dir (recursiv)

//Add a single file

//Output the new zip file
echo $zipfile->file();


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