Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Creating PHP Zip files and directory

Share this post!
 Vote this!

Sometimes you require zipping a file or even an entire directory at your server with PHP. The best way is to use ZipArchive class to do it. If you have PHP 5.2 or later version installed on your server and if zip library is enabled then ZipArchive class will be available to you. This class has lots of useful member function which makes easier in zipping files.

How to use ZipArchive class in PHP

Like any other classes first you have to create an object of ZipArchive class to use its public member functions.
$zip-> new ZipArchive();  more...

0 comments:

Post a Comment