Tag: Download zip

How can I offer a gzipped csv file for download using PHP?


I have a PHP script that creates  csv file from the db. I would like to have the script to create the csv data and immediately make a .gzip file available for download. Can you please give me some ideas?


You can easily apply gzip compression with the gzencode function.