Still not sure what you mean by 'web page', so I will continue assuming that it is actually a
URL, as a 'web page' is what you are reading this reply from.
So. Yes, you CAN copy files from URL 'A' to to remote location 'B' where the php script is run from, using curl(), or wget() for binary files, or fgets(), fread() for text files, but you cannot run a script on machine 'A' and have it put the files on remote location 'B', which is what you are wanting to do.
The script HAS to run on the location that you want to copy the files to.
Assuming you run M$ Windows just install [url-"
https://www.cygwin.com/"]CygWin[/url] and select the 'wget' component during setup, then use that to grab the files in a cygwin command prompt.
Just 'cd' to the folder you want the file(s) in and use
Code:
wget http://domain.tld/folder/filename.ext
to download an entire folder;
Code:
wget ‐‐directory-prefix=folder/subfolder domain.tld
If you have a list of file URLs
Code:
wget ‐‐input list-of-file-urls.txt
More info on wget can be found at
http://www.labnol.org/software/wget-command-examples/28750/