CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:


New User

Oct 14, 2002, 9:01 AM

Post #1 of 2 (1656 views)

I hope you guys can help me with this; I've been researching for the last month with no success.

What I'm trying to do is to copy/download/transfer a list of images from a remote server to my server.

I was thinking of the following:
When I display these pictures on my website, they’re pulled from the remote server, but I would like to check whether they exist on my server first (the ideal situation) and then display them, if not download the picture from the remote server and store it on my server, and then display it. Do you get the picture?? How do I do it??

I have tried to do it manually by downloading the images to my computer and then uploading them to my server, there are approximately 5,000 images this will take me forever, I definitely need a script for this!!

I wish somebody would direct me towards the right direction; your suggestions would be strongly appreciated.


Oct 15, 2002, 1:08 AM

Post #2 of 2 (1651 views)
Re: [MichaelGarcia] DOWNLOADING REMOTE IMAGES [In reply to] Can't Post

`use HTML::LinkExtor ;' to get the links
use LWP::Simple qw(get mirror);
use `get' to fetch the page with the links,
and then use mirror to download the files
Mirror will check if you already got it where you're saving, as well as if the file changed/expired or not.

Edited by Jasmine: removed rude comment

(This post was edited by Jasmine on Oct 15, 2002, 10:03 AM)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives