Jump to content

merge .zip files script


snk

Recommended Posts

Hello,

 

My host doesn't support uploading of big files, therefore I have to break them to chunks of 100mb. I would like to ask, if somebody knows any good script that runs from a browser in order to merge those files back. Unfortunately, coz I am doing video editing, there is no fixed size or number of chunks, thus I need a "browse" option.

 

Thank you in advance.

Link to comment
https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/
Share on other sites

Thank you very much for your answer, it is useful script. Unfortunately is not what i am looking for.

 

In my desktop computer I compress via winzip a folder or file and I brake it into chunks of 100 megabytes each in order to upload them, I can't upload a file more than 100mb. My problem is that i dont know how to merge the splitted compressed file online. I dont have problem to zip a folder or files, my host provides this ability via my panel.

 

thank you.

You would need to do 2 things.

Firstly extract the zips to a folder then use the tutorial above to put that folder contents back into a zip.

 

<?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
    $zip->extractTo('/my/destination/dir/');
    $zip->close();
    echo 'ok';
} else {
    echo 'failed';
}
?> 

 

I believe this only works on PHP4 havent tested on PHP5

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.