Results 1 to 3 of 3

Thread: Multi Part ZIP Files

  1. #1

    Thread Starter
    Hyperactive Member Disiance's Avatar
    Join Date
    Sep 2004
    Location
    Denver, CO
    Posts
    439

    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?
    "I don't want to live alone until I'm married" - M.M.R.P

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Multi Part ZIP Files

    exec('cat file1.zip file2.zip file3.zip > file.zip && unzip file.zip');

  3. #3

    Thread Starter
    Hyperactive Member Disiance's Avatar
    Join Date
    Sep 2004
    Location
    Denver, CO
    Posts
    439

    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?
    "I don't want to live alone until I'm married" - M.M.R.P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width