I have this code...
$rawoutput="";
$ns = fsockopen("whois.internic.net",43);
@fputs($ns,"$domainname.$ext\n");
while(!@feof($ns)){
$rawoutput.= fgets($ns,128);
}
@fclose($ns);

It is part of a loop, and is dead slow... Is there anyway it can be optimised, perhpas not having to connect each time

TIA