Posted by chuck on 09/28/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]
|