Parsing Images in PHP
Let's parse an image:
<?php
$data = file_get_contents('http://targ.loc/img.png');
file_put_contents('img.png', $data);
?>
Create a page with the following markup, placing a real image:
<div>
<img src="/img.png">
</div>
Parse the page along with the image.
Create a page with the following markup, placing real images:
<div>
<img src="/img1.png">
<img src="/img2.png">
<img src="/img3.png">
</div>
Parse the page along with the images.