$cont)
{
$ipInfo[$key] = preg_match($cont,$risposta,$value) && !empty($value[1]) ? $value[1] : 'non trovato';
}
return $ipInfo;
}
$ip= $_SERVER['REMOTE_ADDR'];
$res= controlloIP($ip);
while (list($chiave,$valore) = each($res))
{
echo "$chiave : $valore
";
}
?>