UpcomingPhpDev Posted December 29, 2008 Share Posted December 29, 2008 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 <?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(); ?> Thanks for reading Link to comment https://forums.phpfreaks.com/topic/138736-zip-corrupt/ Share on other sites More sharing options...
revraz Posted December 29, 2008 Share Posted December 29, 2008 Using windows internal zip or winzip on windows? Link to comment https://forums.phpfreaks.com/topic/138736-zip-corrupt/#findComment-725364 Share on other sites More sharing options...
UpcomingPhpDev Posted December 29, 2008 Author Share Posted December 29, 2008 Using windows internal zip or winzip on windows? with the basic windows extract and have also tried with winrar Link to comment https://forums.phpfreaks.com/topic/138736-zip-corrupt/#findComment-725369 Share on other sites More sharing options...
UpcomingPhpDev Posted December 29, 2008 Author Share Posted December 29, 2008 Just bumping as its on page 2, Thanks Link to comment https://forums.phpfreaks.com/topic/138736-zip-corrupt/#findComment-725437 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.