tags:

views:

44

answers:

0

hi,

I have this problem using PHP ZipArchive to unzip certain .ZIP files that get unzipped but with 0-bytes. I can unzip the same .ZIP file manually and the file is OK. The .ZIP files were produced using VB.NET zip functions from the client. I wonder if there's any incompatiblity issue between PHP and .NET when it comes to zipping/unzipping?

Updated:-This is the script used

$zip = new ZipArchive;
$res = $zip->open('test/file1.zip');
if ($res === TRUE) {
    $zip->extractTo('test/');
}

Thanks