
Alexandr - 2011-08-03 08:43:53
Hi. Thank you for this excellent class. I am writing project where need make zip of big files, more then 100 mb and i have a problem. Your script read all file in one variable(file_get_contents()) and this is problem.. I am trying make read file for fixed length and zipped it , something like this :
$ob = fopen($filename,'rb');
while ($buffer = fread($ob,$this->read_size))
{
$temp_zdata = gzcompress($buffer);
$temp_zdata = mb_substr(mb_substr($temp_zdata, 0, strlen($temp_zdata) - 4), 2);
fwrite($fh, $temp_zdata);
}
This code i insert where you write compressed data in file.
But it's not work. I get different source of files in result =(
I will grateful if you will help me.