libxml_use_internal_errors(true);$c = file_get_contents("Paginaweb.com");$d = new DomDocument();$d->loadHTML($c);$xp = new domxpath($d);foreach ($xp->query("//meta[@property='og:image']") as $el) { echo $el->getAttribute("content");}