CodeIgniter Forums
Using FTP Library to move files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Using FTP Library to move files (/showthread.php?tid=7551)



Using FTP Library to move files - El Forum - 04-14-2008

[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


Using FTP Library to move files - El Forum - 04-14-2008

[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.


Using FTP Library to move files - El Forum - 04-15-2008

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