[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 608
  • Last Modified:

FTP to FTP copy script?? PHP

Hello, I'm trying to figure out how I should go about making a FTP to FTP copy script in PHP. Basicly what I need it to do is copy some files from one server to another server. I am not sure how to go about this however.  Does anyone have any suggestions/examples/help that they could provide me?

I tried doing a google search, but ftp to ftp scripts don't seem to come up, or I'm just a horrible googler.
0
Valleriani
Asked:
Valleriani
1 Solution
 
Sander StadSysteemontwikkelaar, Database AdministratorCommented:
FTP works on such a way that one of the servers is going to function as the client. Here is a website that could help you create the connection: http://davidwalsh.name/send-files-ftp-php
 
0
 
James LooneySr. Programmer/AnalystCommented:
I would recommend rsync or psync. Do you have either of those installed on your machines? I use them for backing up files from one server to another all the time
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now