<?php
$uploadDir = ""; //Resimlerin kaydedileceği dizin
$webAdress = "http://www.hedehödü.com/";
$connect = file_get_contents($webAdress);
preg_match_all('~<div class="entry">.+<img.+src=[\'|"](.*?)[\'|"].+/>.+<small>~i',$connect,$allImages);

for($i=0; $i<count($allImages[1]); $i++):
    if(is_dir($uploadDir)):
        $imageNewName = substr(md5(rand(0,9999)),0,10) . ".jpg"; //Resime yeni isim ver 
        $copy = copy( $allImages[1][$i] ,$uploadDir . "/" . $imageNewName  ); //Resimi kopyala
        
        if($copy === false) die ( $allImages[1][$i] . " - kaynağındaki resim kopyalanamadı."); //Kopyalamada hata oluşursa      
        echo $allImages[1][$i] . " - kaynağındaki resim [" . $imageNewName . "] adıyla sunucuya kopyalandı<br />";
    else:
        echo $uploadDir . " - Dizini bulunamadı";
    endif;    
endfor;
?>