<?php
// compress data
$gzipoutput = gzencode ( $output , 6 );
// various headers, those with # are mandatory
header ( 'Content-Type: application/x-download' );
header ( 'Content-Encoding: gzip' ); #
header ( 'Content-Length: ' . strlen ( $gzipoutput )); #
header ( 'Content-Disposition: attachment; filename="myfile.name"' );
header ( 'Cache-Control: no-cache, no-store, max-age=0, must-revalidate' );
header ( 'Pragma: no-cache' );
// output data
echo $gzipoutput ;
?>
// compress data
$gzipoutput = gzencode ( $output , 6 );
// various headers, those with # are mandatory
header ( 'Content-Type: application/x-download' );
header ( 'Content-Encoding: gzip' ); #
header ( 'Content-Length: ' . strlen ( $gzipoutput )); #
header ( 'Content-Disposition: attachment; filename="myfile.name"' );
header ( 'Cache-Control: no-cache, no-store, max-age=0, must-revalidate' );
header ( 'Pragma: no-cache' );
// output data
echo $gzipoutput ;
?>