Hi there!!
I've got a script that dumps sql data into a csv file that the user can download.
Problem is that the data has become so much that we really need to gzip the stuff.
I tried this:
$rowvalue contains the result from the SQL statement
$filename=sprintf("blablabla.gz");
$gzrowvalue = gzcompress($rowvalue, 9);
header("Content-disposition:filename=$filename");
header("Content-type:application/gzip");
header("Pragma: no-cache");
header("Expires: 0");
echo $gzrowvalue;
But I can't unzip the downloaded file!