Hello,
This should be easy, but I'm not sure how to do it.
Basically, there are about 97 images, accessed via the web, on a site I need to pull down.
Now, since I don't have FTP access to this site, what I'd like to do is setup a script to pull down each image one by one and save them on my server using the copy() inside PHP.
First question:
How would I setup a script that goes through each image on the other server and grabs them using copy() ?
The links look something like:
http://www.someserver.com/images/1.jpg
THROUGH
http://www.someserver.com/images/96.jpg
Second question:
These images are in a directory which is protected by htaccess, so I need to pass my username and password to the copy() function as well.
How is this achieved?
Thanks in advance! All help is greatly appreciated!