Is it possible with PHP script to have the script download a file on a remote server to my web server?
I have my own webserver and domain. I want to put a php script on that domain, that will download a file from a remote server onto my server’s filesystem. Is this possible?
-Jim
Sure, you’ll need write permissions somewhere on the file system (where you want to save this file),
file_get_contentscan take a URL as its argument, you just need to write the resulting string to a new fileI’d personally do this by calling out to the shell and invoking
wgetor similar if i were on a linux box.