Tagsnippet

How to Create a ZIP File using PHP ?

H

Creating a ZIP File using PHP is very simple using the built-in Class “ZipArchive“. All one has to do is create an instance of this class and use the methods of this class to create the zip file. Lets take a look how we can create a zip file.     The snippet for creating a zip file is <?php if (isset($_FILES['upload']) === true ){ $files =...