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.
$zip-> new ZipArchive(); more...
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