Hi,
I have gzip compressed one.gz file.
I'm sending one.gz file to browser with this code:
<?
$file='one.gz';
$gzdata=file_get_contents($file);
$gzsize=filesize($file);
header('Content-Length: '. $gzsize);
header('Content-Encoding: gzip');
echo $gzdata;
?>
This works fine.
But I need send one.gz and two.gz compressed files to browser.
<?
$file='one.gz';
$file2='two.gz';
$gzdata=file_get_contents($file);
$gzdata2=file_get_contents($file2);
$gzsize=strlen($file)+strlen($file2);
header('Content-Length: '. $gzsize);
header('Content-Encoding: gzip');
echo $gzdata;
echo $gzdata2;
?>
This code is sending only one.gz data to browser..
I really need send two files to browser..
But how?
Thanks.