FTP - copy files from one FTP server to another - possible?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
imago
Forum Newbie
Posts: 3
Joined: Tue Jul 15, 2003 5:16 am
Location: Australia
Contact:

FTP - copy files from one FTP server to another - possible?

Post by imago »

hello,

I am just wondering if it possible to copy files from one FTp server to another. What is the best way? I would prefer if I can use ftp functions and I'm not sure which how that is done.

Thanks,

Sam
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved to PHP - Normal.

Mac
jamesm87
Forum Newbie
Posts: 21
Joined: Sat May 31, 2003 1:54 pm
Location: London, UK

Post by jamesm87 »

All i can recomend is copy all the server and paste it into the new one. :D
Carl B
Forum Newbie
Posts: 2
Joined: Thu Jul 17, 2003 1:53 pm

Post by Carl B »

You need a client and two servers that support FXP, the FTP server-to-server transfer protocal that isn't really formally defined. FlashFXP and CuteFTP 2+ for Windows, I think pftp for 'nix, but I tend to stay on the Win side of things. Most servers support this, unless they specifically disable it.
lethal
Forum Newbie
Posts: 3
Joined: Wed Jul 24, 2002 3:16 pm

Ahem...

Post by lethal »

An idea I have about using the FTP functions is, copy the file(s) onto the server that the script is running from into a directory. Then, use the FTP functions again to loop through the directory, and transfer each file to that server. I've never experimented with the FTP functions, but it should work.
Post Reply