Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.