hello!!

i made this script to check domain and extensions but i cant get the .co.uk in it can someone help me get this script good.

here is the phpscript:
Code:
<?   
// Scripting by <a href="http://www.mijnweb.nl" target="_blank">

// .com .net .org domeinen 

$comserver  = "whois.verisign-grs.net"; 
$comnomatch = "No match"; 

$netserver  = "whois.verisign-grs.net"; 
$netnomatch = "No match"; 

$orgserver  = "whois.verisign-grs.net"; 
$orgnomatch = "No match"; 





// .info .biz domeinen 

$infoserver  = "whois.opensrs.net"; 
$infonomatch = "NOT FOUND"; 

$bizserver  = "whois.opensrs.net"; 
$biznomatch = "Not found"; 


// .nu domeinen 

$nuserver = "whois.nic.nu"; 
$nunomatch = "Geen resultaten"; 



// .nl domeinen 

$nlserver = "whois.nic.nl"; 
$nlnomatch = "zonder domain"; 



//.be domeinen 

$beserver = "whois.dns.be"; 
$benomatch = "No such domain";



//.uk .co.uk .me.uk 

$ukserver = "whois.nic.uk"; 
$uknomatch = "No such domain";

$coukserver = "whois.nic.uk";   
$couknomatch = "No such domain"; 
$coukserver = str_replace('nic','co',$coukserver); 
echo $coukserver;


//DE FUNCTIE OM TE KIJKEN OF DIE VRIJ IS! 

function whois($server, $domein,$ext){ 
    $domein = $domein."$ext"; 
    $data = ""; 
    $fp = fsockopen($server, 43); 

    if($fp){    
        fputs($fp, $domein."\r\n");    

        while(!feof($fp)){    
            $data.=fread($fp,1000);    
        } 
        fclose($fp);    
    } else { 
        $data = "Error, can't open connection"; 
    } 

    return $data;    
} 
  
if ($domein) {      

    echo "<table cellspacing='2' cellpadding='2' width='99%' border='0'>". 
    "<tr><td width='25%' class=big><p>Domein</p></td>". 
    "<td width='25%' class=big><p>Status</p></td>". 
    "<td width='25%' class=big><p>Aktie</p></td>".      
    "<td>&nbsp;</td>". 
    "<td>&nbsp;</td></tr>"; 
  
     
          $ext = array ("nl","be","com","co.uk"); 
          $aantal = count($ext);
		  
	if(in_array(co,$ext)) { 
        echo 'in array'; 
        } 
		
    for($i=0;$i<$aantal;$i++) { 
        $server = $ext[$i]."server"; 
        $data[$i] = whois($$server,$domein,".".$ext[$i]); 
        $nomatch = $ext[$i]."nomatch"; 

        if (ereg($$nomatch,$data[$i])) { 
            $data[$i] = "Domein is vrij"; 
			$rij2 = "<a href='Domeinregistratie.htm' target='_blank'>Registreer deze domeinnaam</a>"; 

        } elseif ($data[$i] == "Error, can't open connection") { 
            $data[$i] = "Opzoeken mislukt"; 

        } else { 
            $data[$i] = "Domein is bezet"; 
            $rij2 = "<a href='?uitgebreid=".$ext[$i]."&dmn=$domein'>Uitgebreide info</a>"; 

        } 

        echo "<tr><td width='25%' class=medium>$domein.".$ext[$i]."</td>". 

            "<td width='25%' class=medium>".$data[$i]."</td>". 

            "<td>$rij2</td>". 

            "<td>$rij3</td></tr>"; 

        $rij2 =""; 

        $rij3 =""; 

    } 

} 

echo "</table>"; 

if ($uitgebreid) { 

    $server = $uitgebreid."server"; 

    $data = whois($$server,$dmn,".".$uitgebreid); 

    echo "<pre>".$data."</pre>"; 

} 

?>
thnx for the time.
grtz from holland