mira se te servi este:
Código PHP:
Ver original$URL = "http://forosdelweb.";
$fin = array(1 => "com", "es","cat", "fr", "co.uk", "it","de");
for($i = 1; $i <=7; $i++ ){
$DOMAIN = $PARSED_URL['host'];
if($ip===$DOMAIN)
{
echo $DOMAIN." Dominio no existe<br />"; }
else {
echo "<a href=\"http://".$DOMAIN."\">".$DOMAIN."</a> Dominio existe<br />"; }
}