How to Move files from one cpanel to another cpanel server using script - No downloading or uploading

 

Do you want to copy files from file manager of one cpanel to another cpanel server without wasting time on downloading and uploading of files?  Then you are on right place.

Here we are going to guide you step by step to how to move files from one cpanel file manager to another cpanel file manager using php script.

Let’s go step by step with the whole procedure:

Step::1

Login to your cPanel account. Open your cpanel file manager and create a zip of files/folder.

Step::2

Check the location path of the file you want to transfer.

Step::3

Now login to your new cPanel account .

Step::4

Open File Manager and go into public_html.

Step::5

Create a new file with name transfer.php

Step::6

Right click on the newly created file (transfer.php) and choose the Edit option.

Step::7

Copy the code from the bottom of this article and paste it in the newly created file.

Step::8

Change the URL in the code with the URL of your file origin. Then click on Save changes and close the editor

Step::9

Now run the newly created file from a new window with your website URL For example: www.url.com/transfer.php

As soon as you hit the file from new window, the code written inside the file will execute and we will get the specified file in your new cPanel.

				
					<?php
$saif = shell_exec('wget http://dev1.appliancespotter.co.uk/BC.zip');
echo "<pre>$saif</pre>";
?>
				
			

Categories