Jump to content

Using PhP to copy files from one server to another?


vozzek

Recommended Posts

Hi all,

 

Okay, I've got a giant folder on my server filled with let's say 5,000 small image files.  I need this exact folder on my other host's server, with all the files intact.

 

What's the best way to do this?  Ideally I'd like to write or find a php script that can accomplish this.  Even if I can't do it server-to-server directly, maybe I could dump the folder onto my desktop and then restore it into the new server?  I'm using CPanel and the backups provided are for the entire home folder or nothing.

 

Someone else said I needed CURL.  One more thing to learn I guess.  How would you guys accomplish this?

 

Thanks in advance for the help!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.