title: Using PHP, web scrape main url for all images, redisplay onto another website
body: <p>Interestingly, I have not been able to find a working example of this. Using php, I'm trying to scrape/re display all the images of a given url, onto another website. I know how to do this with text, but images, I'm not sure. Anyone know of a good working example? I get how to grab all contents, but not specifically just the images. ex this does the whole page:</p>
  
  <pre><code>&lt;?php
  $curl = curl_init();
  curl_setopt ($curl, CURLOPT_URL,         
  "https://en.wikipedia.org/wiki/Wikipedia:Picture_of_the_day");
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  $result = curl_exec ($curl);
  curl_close ($curl);
  echo $result;
  ?&gt;
  </code></pre>
  
  <p>Thanks much. -Wilson</p>
  
  <p>*ideally actually this would just grab the first image, such as in the example above. But I won't get ahead of myself, just trying to get this function down.</p>