$link="http://www.blogial.net";
$httpfile = file_get_contents($link) ;
$res = preg_match_all("/<a[^>]*>(.*?)<\/a>/",$httpfile,$matches);
foreach(array_unique($matches[0]) as $immagine) {
echo $immagine. "
";
}