Is there a way to create an uncompressed ZIP (level 0) from PHP? I can't find any info in the php documentation.
A:
If the zip tool is installed on your server, you can always use the shell_exec()
function to execute an external command. That way you can most likely create an uncompressed zip file.
Nicolas
2009-07-28 13:44:37
+1
A:
According to php.net’s bugtracker (and bug #41243) this functionality is not available in the built-in zip utilities. For now you have to shell out.
Bombe
2009-07-28 14:10:11
A:
Thank you, guys!
I found a solution using pear's late Archive_Zip library. There's a bug in it causing corrupted files when using no_compression parameter. The solution found at http://pear.php.net/bugs/bug.php?id=7871 solved that problem!
Cambiata
2009-07-29 09:56:10