Hello!
I have a zip file containing the following files:
file1.bin
file2.bin
file3.bin
file4.bin etc..
I use this code to unzip the files:
$zip_file_name="all_files_".$time.".zip";
$zip = new ZipArchive;
$res = $zip->open($zip_file_name);
if ($res === TRUE) {
chmod("unzip\", 0644);
$zip->extractTo('unzip/');
$zip->close();
}
else {
echo "Could not open file";
}
But how can I unzip only one particular file for instance file4.bin?
Thanks!!