Apache server supports server level GZip compression with the help of module mod_gzip and mod_deflate. You can use this module and enable GZip compression for your website using htaccess file. First you have to check whether your hosting provider has Continue reading GZip – using mod_gzip, mod_deflate and htaccess
The above code, gives an example of the methods to use for extracting the contents of files, or status and size of files, in a .zip archive.
Below code sample is for extracting the contents of a .zip file into a folder given by ‘/test/’. Note that if the folder ‘test’ is not there, it is created. The method extractTo does the process of reading all files Continue reading PHP – Extracting a zip compressed archive into a folder
Steps in above code: – We create an instance of ZipArchive class. – We open (create if not present) a zip archive file by the name testBundle.zip – We add files into our archive.. and close. – That’s it, this Continue reading PHP – Creating a ZIP compressed archive