Page 1 of 1

Zip Corrupt?

Posted: Mon Dec 29, 2008 2:05 pm
by tyler.pomroy
Hey guys, Im basically adding some php and css files into a folder then zipping them with the AddFile:: syntax
But the problem is all zips are coming out as corrupt when i try to open them on windows.

Do you know wat the problem can me?

Heres a example code

Code: Select all

<?php
 
$Zip = new ZipArchive();
 
$Zip->open("Scripts/$FileName", ZipArchive::CREATE);
$Zip->addFile("Index.php","Index.php");
$Zip->addFile("Css.css","Css.css");
$Zip->addFile("Footer.php","Footer.php");
$Zip->close();
 
?>
 

Re: Zip Corrupt?

Posted: Sun Sep 04, 2011 10:03 am
by nedved31
For solving out troubles with zip archives zip recovery. Next program works under all major Windows OS, can work with big zip files, using simply interface for working out various troubles with zip files.

Re: Zip Corrupt?

Posted: Sun Sep 04, 2011 11:15 am
by ok
How do you download the Zip file? Through your PHP script or via some sort of file manager?