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();
?>