Hi,
Great start for a soon to be great component.
I found a little bug:
With .nl dutch domainnames you have to deal with the maximum of domain checks per day.
You have to use the "Is" parameter.
Something I use for MrWhois:
| Code: |
function nlwhois($dom,$domt,&$regdet)
{
if ($regdet=="*"«»)
{
$regdet="";
$connection=@fsockopen("whois.domain-registry.nl",43,$errorno,$errordesc);
if ($connection)
{
fputs($connection,"Is ".$dom.$domt."\r\n"«»);
while(!feof($connection))
{
$regdet[]=fgets($connection,255);
}
fclose($connection);
if (count($regdet)<1)
return(5);
$registered=1;
for($index=0;$index<count($regdet);$index++)
{
$lne=strtolower($regdet[$index]);
$pos=strpos($lne,"is free"«»);
if (is_integer($pos))
{
$registered=0;
break;
}
}
return($registered);
}
else
return(5);
}
|