PDA

View Full Version : How to split files


nitinmukesh123
01-15-2007, 04:52 AM
Hi,

I have a small question.

How can i split file into multiple chunks like and file splitter do.
I have a file on FTP of size 600 MB and i want to split it into 100 MB 6 parts. Is there any FTP command to do this.

Though i can do it using PHP but the problem is script timeout limit is very small so before the operation completes script just stops.

Thanks for any help

[EDIT]

More info abt FTP

[R] 220---------- Welcome to Pure-FTPd [TLS] ----------

[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R] EPRT
[R] IDLE
[R] MDTM
[R] SIZE
[R] REST STREAM
[R] MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNI X.gid*;unique*;
[R] MLSD
[R] ESTP
[R] PASV
[R] EPSV
[R] SPSV
[R] ESTA
[R] AUTH TLS
[R] PBSZ
[R] PROT
[R] 211 End.

[R] 227 Entering Passive Mode

Any other info which might be needed i can provide please let me know


* FlashFXP v[ ].[ ], build [ ], [ ]registered, [ ]unregistered, [ ]pirated, [] not using just a simple query maybe if possible i will start using it
* OS [ ] WinXP, [ ] Win2K, [ ] Win98, [ ] WinME, [ ] Other
* Running behind NAT/router [ ] Yes & Model [ ], [ ] No, [ ] Not sure
* Running firewall [ ] Yes, Name [ ], Ver. [ ], or [ ] No
* Running Antivirus [ ] Yes, Name [ ] or [ ] No
* Network [ ] xDSL, [ ] CABLE, [ ] Dail-Up, [ ] Other

MxxCon
01-15-2007, 01:10 PM
How can i split file into multiple chunks like and file splitter do.
I have a file on FTP of size 600 MB and i want to split it into 100 MB 6 parts. Is there any FTP command to do this.ftp doesn't have such command. however you can dowload that file, abort it whenever you need to and then resume downloading at a later time.

FTPServerTools
01-15-2007, 03:26 PM
use a dos file splitter or simply use total commander.

MxxCon
01-15-2007, 11:58 PM
use a dos file splitter or simply use total commander.it sounds like he wants to do it on the remote server...so neither of your suggestions would work.

nitinmukesh123
01-16-2007, 12:03 AM
it sounds like he wants to do it on the remote server...so neither of your suggestions would work.
Absolutely.

I have been using PHP functions (chunk_split) to do this and work fine. But fails when the filesize is big as there is a 10 sec. script execution limit.

So should i assume there is no way to do this using FTP client :(

FTPServerTools
01-16-2007, 05:18 AM
Well if you want to do it on the sever you can make yourself a site command and run a dos file splitter. They are easy to write. But by BIG you mean more then 4G right?
I am sure I got a filesplitter lying around somewhere and can put it up otherwise it is super easy to make.

MxxCon
01-16-2007, 09:30 AM
again sounds like it's a shared hosting eviroment with strict quotas on everythings..i highly doubt he would be allowed to make any modifications to ftp server to allow running custom "site" commands.

nitinmukesh123
01-16-2007, 09:42 AM
again sounds like it's a shared hosting eviroment with strict quotas on everythings..i highly doubt he would be allowed to make any modifications to ftp server to allow running custom "site" commands.

Again you are right.
Its a shared free hosting. No custom site command will be allowed.
So it means there is no simple way to do this :(

Thanks for your help.