Suppose i have fetched a images using PHP Simple HTML DOM Parser and obtain it in a specific URL. Suppose it fetched a Image in a variable like
<?php include("simple_html_dom.php");
$webpage ="http://www.example.com";
$html = file_get_html($webpage);
foreach($html->find('img') as $element) {
echo $element->src . '<br>'; }
?>
Now is it possible to get this image in my own domain path, like
$new_img = 'http://mysite.com/some_image_address.JPEG';
I am a PHP beginner so please describe it