I am writing a script in which i have to fetch a file and save it to the server on which the script is running . I have Googled it a lot but can not find how it can be done.
I once again try to explain, i want to get a file from a remote url to save on a server. Let us say that the file is text file located at some url exampleone.com/newpicture.jpg i want to download it to my site www.exampletwo.com
How can this be done.
Thanks in advance.