How to upload a file from one server to another server using PHP script

Hi Folks

Ever stuck in downloading backup from one server and uploading hefty files again to another server?

Don’t worry! you can save your time by simply putting this code.. which i am about to tell you all which will save your BADASS time.

For example you have one zip file on your server which you want to move to another server. All you need to do is

Create a new file upload_task.php

Add below code in it

<? php>

file_put_contents("", fopen("", 'r'));


Thats it.

Just hit this url and you are done uploading file from one server to another.

Leave a Reply

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