I don't know if you mean in PHP or generally, but if generally, that's called FXP. I use a program called FlashFXP which does a fine job. It connects to two FTP servers then allows you to transfer files directly between them (assuming they both support it) without having to download them first.
Last edited by Alan @ CIT : 01-25-2008 at 06:33 PM.
Are you asking for a way to do it programmatically or do you need a program to do that? If you need a software, see the other posts. Otherwise, you can use various libraries (depends on the programming language). In PHP, you have ftp functions.
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.