Codice PHP:
<?php
$link
="http://www.paginaweb.it";
$httpfile file_get_contents($link) ;

$res preg_match_all("/<a href[^>]+>/",$httpfile,$matches);
foreach(
array_unique($matches[0]) as $immagine) {
      echo 
$immagine"
"
;
}
?>
da quì mi estraggo tutti i link presenti in una determinata pagina ... ok ...
la stampa è così però:
<a href="http://www.paginaweb.it/">


..manca il tag di chiusura </a> e il testo tra i tag <a href> e </a>

come aggiungere ciò che manca ?