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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.