Hi
I am trying to unzip a .zip file by my code. I am using ZipArchive for that one. It is wokring fine but only problem is, when I add zip file which is zipped by "winzip version 9", it extracts empty folder.
Any Idea why it is happening ?
below is my code :
$zip = new ZipArchive();
$x = $zip->open($file_to_open);
if ($x === true)
{
$zip->extractTo($target . $unique_folder);
$zip->close();
} else {
die("There was a problem opening zip. Please try again!");
}
Please help. Thanks in advance.