CodeIgniter Forums

Full Version: Zip files corrupted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


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.