+ 4

download file with server-side code

does anybody know how i could use server-side code to download files from other servers to my server? i want to do this: [not my server]------download file to---------->[my server] the file is affiliated with something i made, the server is just hosting it.

8th Feb 2018, 6:45 PM
vortetty
vortetty - avatar
4 ответов
+ 4
What type of access do you have to the server that isn't yours? Many ways to create simple linux scripts to accomplish this task. Obviously if you don't have access to the other server then it won't matter, and it'll also depend upon how the security/firewalls is set up on the hosting server. Throw more info my way and I can throw an example script your way.
8th Feb 2018, 6:56 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
how would python download it?
8th Feb 2018, 1:44 PM
vortetty
vortetty - avatar
+ 1
Python would be best for this not PHP. Or if you own both servers and want to use PHP then you could use CURL.
8th Feb 2018, 1:14 PM
ihateonions
+ 1
I can view the website but cant do much else, it is a host for Cryptocurrency’s, I want to take a file off of it, edit it, and hook it up to my site to turn my laptop into a coin miner.
8th Feb 2018, 8:19 PM
vortetty
vortetty - avatar