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.
header("Content-Disposition: attachment; filename=your_file_name.xml.gz");