unzipp problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am using windows vista and if I am going to unzipp a file that zipped throug php code, it says file corrupt!
But if the file is too small like 1 or 2 lines it open ,if more than 2 lines it does not open.
Don't understand why?? anyone can help or share any idea.

Trying to unzip in windows vista.

$zip = new ZipArchive;
if ($zip->open('test.zip' ,ZipArchive: :CREATE) === TRUE) {
    $zip->addFile('/path/ to/index. txt', 'newname.txt' );
    $zip->close();
    echo 'ok';
} else {
    echo 'failed';
}

kabir


      

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux