You are here: Re: Php/curl and getting images « All PHP « IT news, forums, messages
Re: Php/curl and getting images

Posted by chuck on 10/10/90 11:19

Steve wrote:
>>I'm using a php script to do a curl to another website and
>>I can pull across the webpage - all except for the images
>>in the page - I end up with broken icons. How do I get the
>>images?
>
>
>
> cURL does not do recursive transfers, so it is up to you to add the
> logic to fetch images as required. You will probably use regular
> expressions to locate and parse image tags. Alternatively use wget
> which does do recursion.
>
> ---
> Steve
>

Hey thanks. I installed wget only to find I'm not allowed to execute
anything via apache ie: "exec ("someprogram..."); Sighhhhhhhhh.....

I got it to work by doing
curl to_prog.php
curl get_a.jpg
curl get_b.jpg
include "to_prog.php"

prog.php runs a pair of phplot scripts saving to a.jpg & b.jpg. Then
goes back and gets the 2 jpg's, then the include causes the 2 jpg's
to display. Anyway I've got what I was after. Tks again.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация