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
FTP - copy files from one FTP server to another - possible?
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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.
Ahem...
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.