Codice PHP:
<?php
$html 
join(""file("http://www.alt0169.com/start/"));
preg_match_all('#\b((((ht|f)tps?://)|(www|ftp)\.)[a-zA-Z0-9\.\#\@\:%&_/\?\=\~\-]+)#e',$html$match);
for (
$i=0$i<count($match[1]); $i++)
        echo 
$match[1][$i]."
\n"
;
?>
Questo script mi tira fuori da un file tutti gli url tipo http://www...../1/2/3...
vorrei che mi estraesse solo le stringhe che rappresentano il dominio:
es:
non http://www.abc.com/pagine/p1.html
ma solo http://www.abc.com

cosa devo cambiare?