oricoun 4 Posted September 22, 2015 Report Share Posted September 22, 2015 I think, that title, pretty much , says it all. Is there any way to avoid slow internet connection and Upload file from URL into a server without hassle of downloading it locally into my own computer.I have Aymen http post plugin, FTP plugin also, but I dont really see it happening with my programming skills. If you guy have any suggestion, I am all ears. Little off topic: I recently discovered linux SCP command by moving data from one server to another - amazing!!! scp -r root@SERVERIP:/home/file.zip root@ANOTHERSERVERIP:/home/ yay!!!! Quote Link to post Share on other sites
YuraB 4 Posted September 23, 2015 Report Share Posted September 23, 2015 The easiest way to do so is to create server script to download remote content. For example you can call your php file with url as parameter (navigate to http://www.yourdomain.com/getremotefile.php?url=http://www.remotesite.com/video.avi') <?php $file = $_GET["url"]; // read the file from remote location $current = file_get_contents($file); // create new file name $name = "path/to/folder/newname.avi"; // Write the contents back to the file file_put_contents($file, $current); Quote Link to post Share on other sites
oricoun 4 Posted September 24, 2015 Author Report Share Posted September 24, 2015 Thanks. You know what I did? Bizzare... I installed dropbox on my centos VPS:https://www.dropbox.com/install?os=lnx now I can upload files from URL into a dropbox: https://blogs.dropbox.com/developers/2015/06/programmatically-saving-a-url-to-dropbox/ Easy with http post plugin Than, I am using ssh plugin to move folders /files/ around, on my server. YAY!!!!!! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.