PHP Classes

Create ZIP File: Create ZIP file archives and serve for download

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (38)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 28,004 This week: 1All time: 17 This week: 560Down
Version License PHP version Categories
createzipfile 1.0.0Free for non-comm...5Files and Folders, Compression
Description 

Author

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.

Picture of Er. Rochak Chauhan
  Performance   Level  
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Classes: 54 packages by
Country: India India
Age: 45
All time rank: 21 in India India
Week rank: 106 Down8 in India India Down
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

  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

 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:28,004
This week:1
All time:17
This week:560Down
User Ratings User Comments (8)
 All time
Utility:83%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1560
 
this is the perfect class, if your hoster wont allow you to u...
13 years ago (mafmaf)
70%StarStarStarStar
Useful thingummy.
13 years ago (Fox)
70%StarStarStarStar
I love that you've developed a way to zip up files/directorie...
14 years ago (george davidson)
45%StarStarStar
Excellent class! Works great!
14 years ago (Nathan Shackles)
70%StarStarStarStar
The class file was good.
14 years ago (venkatachalam ravindran)
65%StarStarStarStar
another indian-style code.
14 years ago (Nick Lavrov)
7%Star
This is a great little class and is extremely useful.
15 years ago (Kevin Jones)
57%StarStarStar
It doesn't work.
15 years ago (Dave Pedu)
10%Star