-
Multi Part ZIP Files
Does anyone know of a way to extract multi-part ZIP files with PHP (or, in Python, if you happen to know)?
For instance, I have a large file that I zip, but I want to distribute in small chunks, so instead of file.zip, I would have file.zip, file2.zip, and file3.zip.
PHP, with it's default library, cannot handle this.
Anyone know of a way to do this?
-
Re: Multi Part ZIP Files
exec('cat file1.zip file2.zip file3.zip > file.zip && unzip file.zip');
-
Re: Multi Part ZIP Files
I've tried that, and also tried the same method on Windows using "copy /b file1 + file2 dest.zip" command.
The message I get when opening a combined file (in WinRAR) is:
"Seek error in the file ###
An attempt was made to move the file pointer before the beginning of the file."
I can test the uncombined archive files, and extract its contents, without any problems. Any other ideas? Any ways to test the contents to make sure the format is what's expected?