• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zip files corrupted

#1
[eluser]vile[/eluser]
Hi,

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

Code:
for($i = 0 ;$i<=3;$i++) //loop
{
    file_put_contents( $dir_path.$filename, $pdf);
    $this->zip->read_file($dir_path.$filename);
}
$this->zip->archive($dir_path.'test_arch.zip');


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.


Messages In This Thread
Zip files corrupted - by El Forum - 09-26-2011, 04:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.