Forum Moderators: coopster

Message Too Old, No Replies

Mutli-threaded FTP

Can this be done?

         

cybersphere

11:02 pm on Oct 19, 2006 (gmt 0)

10+ Year Member



I have an FTP script that connects to multiple servers and uploads files.

I would like to create a multi-threaded app that does this simultaneously on multiple servers.

Can this be done?

eelixduppy

1:20 pm on Oct 22, 2006 (gmt 0)



I'm not exactly sure what you want to do. Can you elaborate a little? I'm thinking PHP isn't something you want to use for this.

mcavic

3:17 pm on Oct 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Multi-threaded, no, but multi-process, yes. You can use fork() to create slave processes to do the transfers in parallel. It's a bit tricky, though.

Theo_B

3:17 pm on Oct 22, 2006 (gmt 0)

10+ Year Member



I think you can connect to multiply servers in the same script, but not really simultaneously (to my mind) or it will be very hard...

[edited by: Theo_B at 3:19 pm (utc) on Oct. 22, 2006]

eelixduppy

3:49 pm on Oct 22, 2006 (gmt 0)



Welcome to WebmasterWorld, Theo_B!

Glad to have you on board ;)

Theo_B

4:50 pm on Oct 22, 2006 (gmt 0)

10+ Year Member



Thank you eelix ;)