Zip Corrupt?
Posted: Mon Dec 29, 2008 2:05 pm
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
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();
?>