Home / Php Scripts / Transfer Any File From Server To Server, In Just 1 Minute or less

Transfer Any File From Server To Server, In Just 1 Minute or less

The main point of this post is how you transfer any files from server to server, in just 1 minute or less. Many have to transfer from different file servers to the server. In this case backup files on the server are compressed and uploaded in Zip format and uploaded to another server. There is a lot of time in this case. Depending on your internet speed, how long it will take. You can finish the work with a PHP script in just 1 minute or less. The advantage of this script is that any files of any size can be transferred from the server to the server. If size is 500 MB or 1 GB, then it will take more than 1 minute.

Code

<?

/**
* Transfer Files Server to Server Using PHP Script
* @link http://www.webseobest.com/?p=00000
*/

/* Source File URL */
$remote_file_url = ‘http://localhost/backup.zip’;

/* New file name and path for this file */
$local_file = ‘backup.zip’;

/* Copy the file from source url to server */
$copy = copy( $remote_file_url, $local_file );

/* Add notice for success/failure */
if( !$copy ) {
echo “Failed To Copy $file…\n”;
}
else{
echo “Copy Successfull $file…\n”;
}

?>

Terms of use of this code
Copy the code as a PHP file or download it from the download link and upload it.
/ * Source File URL * / at http: //localhost/backup.zip instead of entering your file address.
/ * Please enter your file name instead of backup.zip * in / new file name and path for this file * /. The file must be written in the format that is in the file. My file was in zip format in the above code. So I wrote as backup.zip.
Please visit the page. If the above works are OK then Copy Successfull will show up and if there is a mistake, then Failed To Copy will show.

Download attachment

Be good If there is any problem, then tell the comment.
Read the post yourself, share it with others.

Attachments

  • zip transfer
    File size: 424 B Downloads: 32

About Shaon

If your actions inspire others to dream more, learn more, do more and become more, you are a leader. John Quincy Adams

Check Also

1512931968 onlinetv 13 free download with genuine license key full version thousands tv and radio channels - onlineTV 13 Free Download With Genuine License Key - Full Version (Thousands TV and Radio Channels)

onlineTV 13 Free Download With Genuine License Key – Full Version (Thousands TV and Radio Channels)

onlineTV 13 is a program that gives a database of hundreds TV and radio channels …

One comment

  1. Hey! I know this is kind of off-topic however I needed to ask.
    Does building a well-established website like yours take a massive amount work?

    I am brand new to running a blog however I do write in my journal on a daily basis.
    I’d like to start a blog so I can easily share my personal experience and
    thoughts online. Please let me know if you have any kind of
    recommendations or tips for new aspiring bloggers.

    Appreciate it!

Leave a Reply

Your email address will not be published. Required fields are marked *