Jump to content

Zip Corrupt?


UpcomingPhpDev

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.