Hi,
I have a single text file of 3 GB and its compressed (zip) size is 99MB.
When I try to extract the zip file using below code… I have got the error status “Unsupported Compression / Compression method not supported”
$zip = new ZipArchive;
if ($zip->open($fileName) === TRUE) {
$zip->extractTo($dir);
$extractFile = trim($zip->getNameIndex(0), '/');
echo $zip->getStatusString();
$zip->close();
} else {
echo 'Unable to get archive file from zip';
}
But the same file successfully extracted using “unzip” linux command.
Zip File description (zipinfo)
-rw-a-- 2.1 fat 3027500014 t- d64N 16-Sep-12 16:30 file.txt
Can anybody tell me what’s wrong with ZipArchive method