Re: Downloading Images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Jan 2005 22:14:35 -0600, John Camp <jcamp@xxxxxxxx> wrote:
> I was able to successfully make a very simple http proxy - turns out the
> php documentation has the code for this =] - but now I need a way to
> display images. I figured the best way would be to download the images
> to a temporary folder, then parse the html to point to the images on my
> server instead. The problem is that I do not know how to download the
> images.
> 
> Also if anyone has a link to a parsing script it would save a good
> amount of time.

wget can download/mirror an entire site for you, has proxy support,
and it will update the image paths as well.  One little command is all
you need:

wget -m -np http://example.com/


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux