CodeIgniter Forums
Zip files corrupted - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Zip files corrupted (/thread-45543.html)

Zip files corrupted - El Forum - 09-26-2011


Can you please help me fix this problem with zip encoding class.
I used CI 2 zip class. Here's my code

for($i = 0 ;$i<=3;$i++) //loop
    file_put_contents( $dir_path.$filename, $pdf);

It can already create a zip file, but the problem is the files in it is corrupted.
When i open it using winzip,the file size is OK but CRC32 is 000000.