Reputation: 3845
Is there a way to create an uncompressed ZIP (level 0) from PHP? I can't find any info in the php documentation.
Upvotes: 1
Views: 972
Reputation: 3845
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!
Upvotes: 0
Reputation: 83953
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.
Upvotes: 1
Reputation: 2186
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.
Upvotes: 1