Search For All Post

How To Create And Download A Zip File In PHP

Today, i create a smole php script to creat a zip archive file using ZipArchive class .we will be set the folder path to create a zip archive file and download zip archive file automatically. So here i will give you very simple example to do this.

In the many part of the website may require to create zip archive file using smole ZipArchive() php class. So here i am create a simple function createZip(), In which send two parameter (that like $zip,$dir). that will help to create zip archive file........