Solved

remote ftp transfer

Posted on 2009-04-15
4
270 Views
Last Modified: 2013-12-12
Hey guys,

I have one file in one FTP account, and I would like to transfer this file from this ftp account, to another one that I have.

For example:

I run this script in my personal ftp account, it will connect to my clients ftp server and download some file to my ftp server.
0
Comment
Question by:fackz
  • 2
4 Comments
 
LVL 50

Assisted Solution

by:Steve Bink
Steve Bink earned 65 total points
ID: 24154464
Generally, there are no options to do that with simple FTP service.  That is not what FTP is about.  You can initiate an FXP transfer if both servers are configured for it, but most admins shut down that capability, and you'll still need your FTP client to make it happen.

Your easiest solutions:

1) do the transfer manually
2) create a PHP script that logs in to one, downloads, logs in to the other, uploads.
0
 

Author Comment

by:fackz
ID: 24157102
What about the 2 option? do you know where can I find some examples?
0
 
LVL 50

Assisted Solution

by:Steve Bink
Steve Bink earned 65 total points
ID: 24165136
First, read through this section:

http://www.php.net/manual/en/book.ftp.php

Then look here:

http://www.w3schools.com/PHP/php_ref_ftp.asp

Each function has examples that show how it should be used.  It is all rather intuitive, and a working application can be easily built from just the examples found at those two links.  If you still need help at this point, see here:

http://www.google.com/search?q=php+ftp

Start experimenting with the examples, and learn from the work available online.  If you get stuck, bring your specific problem back here.  This project is a bit large to handle in a single question, but we can certainly guide you if hit a roadblock.
0
 
LVL 14

Accepted Solution

by:
shobinsun earned 60 total points
ID: 24165261
Hello,

You can do it with :

First do download the file from one ftp account and then upload to another ftp account.

The following link will help you:

http://in2.php.net/manual/en/function.ftp-get.php

http://www.jonasjohn.de/snippets/php/ftp-example.htm

Regards
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now