Login   Register  
PHP Classes
elePHPant
Icontem

Create ZIP File

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Er. Rochak Chauhan
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Packages: 44 Browse all classes by Er. Rochak Chauhan Browse all classes by
Country: India India - PHP jobs in India
Age: 34
All time rank: 21 in India India
Week rank: 10 Down2 in India India Down
Innovation award
Innovation award
Nominee: 12x

Winner: 3x


  Detailed description   Download .zip .tar.gz  
This class can create ZIP archives from lists of files.

The class provides means to add individual files or whole directories to the list of files packed into a ZIP archive.

The class can generate the packed archive as a string value.

The class can also output the necessary request response headers to serve the generated ZIP archive for download.

The supplied example demonstrates how to use the class to store the ZIP archive in a file, serve it for download and delete the file after it is served.

  Classes of Er. Rochak Chauhan  >  Create ZIP File  >  Download .zip .tar.gz  >  Support forum Support forum (38)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Create ZIP File
Base name: createzipfile
Description: Create ZIP file archives and serve for download
Version: -
PHP version: 5
License: Free for non-commercial use
All time users: 25359 users
All time rank: 16
Week users: 29 users
Week rank: 43 Down
 
  Groups   Rate classes User ratings   Dependents  
  Trackback   Applications   Related links   Files Files  

  Groups  
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Compression Data compression and file archive manipulation View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (84.4%)
Good (82.1%)
-
Sufficient (76.9%)
-
-
Not sure (58.1%)
986
Month:
Not yet rated by the users

  Packages that need this class  
Class Dependency Why it is needed
Backup
Required
Compress the files for the backup

  Trackback links  
Link Description
Copy/Backup Folder In that case using FTP isn't an option...
Create a zip archive using PHP (Russian) It was necessary to realize the creation of zip file on the fly to give the user and stored on the server...
Create a zip file from folders on the fly This class leads you to creat a zip from a forlder...
Creating a zip on the fly I've tried Create ZIP File and it seems to do what I want....
How to Create a zip file with php on the fly For a future project I needed these days some easy to use zip or gzip class to create a zip file from files / folders inside a specified directory...
How to create zip file archives in PHP and serve for download Creating dynamically zip file archives in PHP is very easy...
Javascript Compressor Javascript compressors, or packers, are tools that compress the javascript file, saving bandwidth...
Make folder zip with php This code will zip the folder not single file but the whole folder...
PHP: Directory ZIP compression (Japanese) Script to compress a specific directory (and all subdirectories) into a ZIP file...
Working with archives means PHP At http://www.phpclasses.org you can download class Create ZIP File, designed to create a zip-file with the hierarchy of folders...
Zip a file or files with PHP I provided a simple function a few days ago that would unzip a file using PHP...

  Applications that use this class  
Link Description
CakePHP Snippet in CakePHP Framework
Zikula Code to zip file(s)
as3pogkit A solution for using POG with AS3 projects
Chisimba PHP Application framework
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Demo :: Create Zip File Demo Link
Support Open Source Free software is a matter of liberty, not price. Think of "free" as in "free speech," not as in "free beer."
Modified Version Refacorting by Olaf Lederer

  Files folder image Files  
File Role Description
Plain text file CreateZipFile.inc.php Class Create a Zip File on the fly
Plain text file CreateZipFileMac.zip.php Class Create a Zip File on the fly for Mac users
Accessible without login Plain text file exampleScript.php Example Example file

Download all files: createzipfile.tar.gz createzipfile.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.