snk Posted February 12, 2008 Share Posted February 12, 2008 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 More sharing options...
Cognito Posted February 12, 2008 Share Posted February 12, 2008 This should be what your after - http://www.phpit.net/article/creating-zip-tar-archives-dynamically-php/ Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464757 Share on other sites More sharing options...
snk Posted February 12, 2008 Author Share Posted February 12, 2008 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. Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464781 Share on other sites More sharing options...
Cognito Posted February 12, 2008 Share Posted February 12, 2008 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 Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464797 Share on other sites More sharing options...
snk Posted February 12, 2008 Author Share Posted February 12, 2008 my files are file.z02 file.z03 file.z04 and so on. I dont have fixed number of files, thus I need a browse facility as well. That script is not suitable at all. Is there something else? Than you for your effort to help me. Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464807 Share on other sites More sharing options...
Cognito Posted February 12, 2008 Share Posted February 12, 2008 dang that makes it really hard your using zip parts, i thought you had like x amount of zip files containing lets say chapters. I don't know anything in php that can unzip x amount of parts into a folder then rezip sorry Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464811 Share on other sites More sharing options...
snk Posted February 12, 2008 Author Share Posted February 12, 2008 I dont need them to rezip them. I just want to upload them. I have a video.avi about 400mb. I make 4 chunks of 100mb and I upload them. The question is.. how can I make it video.avi again. There is no need for re-compression. Thanks. Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464813 Share on other sites More sharing options...
Cognito Posted February 12, 2008 Share Posted February 12, 2008 what i was trying to say is there is no php module or function I know that can unzip 4parts of 1big zip.... it only has the option to unzip .zip not .zip001 002 etc... Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464816 Share on other sites More sharing options...
snk Posted February 12, 2008 Author Share Posted February 12, 2008 thnaks for your help. the solution is to run shell commands. http://hendra-k.net/how-to-extract-multi-part-zip-files.html Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464832 Share on other sites More sharing options...
Cognito Posted February 12, 2008 Share Posted February 12, 2008 Good point! only works on a linux server tho.... Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464846 Share on other sites More sharing options...
snk Posted February 12, 2008 Author Share Posted February 12, 2008 hmm I dont know how exec works for windows server, I suspect that you can make a .dat file to execute your commands.. Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464872 Share on other sites More sharing options...
Cognito Posted February 12, 2008 Share Posted February 12, 2008 exec will work on windows but only for CMD options you would need to have a command line winzip installed. Link to comment https://forums.phpfreaks.com/topic/90663-merge-zip-files-script/#findComment-464878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.