Using FTP Library to move files

#1
[eluser]fancms[/eluser]
Maybe I'm missing something totally obvious here (wouldn't be the first time! Smile). I've looked through at the documentation for the FTP library, and it says:

Quote:CodeIgniter's FTP Class permits files to be transfered to a remote server. Remote files can also be moved, renamed, and deleted. The FTP class also includes a "mirroring" function that permits an entire local directory to be recreated remotely via FTP.

Let's say I have file A on server 1. I want to move file A to server 2. How would I fill in the values for the local path and the remote path? Do I need to connect via FTP on server 1 and Server 2? Or am I just missing the point entirely?

Hoping someone can clarify a bit! Smile

#2
[eluser]Jamie Rumbelow[/eluser]
I think that you need to connect to server 1, copy the file to the local server, connect to server 2, copy from the local to #2!

Give it a try.

#3
[eluser]fancms[/eluser]
That makes sense. Thanks, Jemgames; I'll give it a try!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.