How to remotely upload any file in cPanel from any url or link? [Important| Revised 2019]
Hello Everyone!!!
Most of the clients often asks me how they could remotely upload any file in cPanel from any url or link.
So here in this tutorial we will learn how to remotely upload any file in cPanel via URL.
Simple steps to remotely upload any file in cPanel from any url or link [Updated June 2019]
step::1 Login to your cPanel
step::2 Go inside File Manager
step::3 Go to Public_html
step::4 Create 1.php file inside public_html
step::5 Right click on this 1.php file to Edit
step::6 Now Copy these code from here and paste in your 1.php file
<?php define('BUFSIZ', 4095); $url = 'http://www.sordum.org/files/dns-angel/DnsAngel.zip'; $rfile = fopen($url, 'r'); $lfile = fopen(basename($url), 'w'); while(!feof($rfile)) fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ); fclose($rfile); fclose($lfile); ?>
[Note: Just make sure you replace www.sordum.org/files/dns-angel/DnsAngel.zip and write your url you want to upload]
step::7 Now just reload the directory inside public_html you will see the uploaded file there.
step::8 It’s Done!!!
Hope this answer helped you.. for more queries and suggestions feel free to write or you can also comment below…
Thanks for Reading!!!