Hi David,
folgendes Script hatte ich mir mal zum testen gebastelt:
<html><?
$host="whois.denic.de";
if($query)
{
$lc=0;
$fp = fsockopen($host, 43, &$errno, &$errstr, 15);
if($fp)
{
fputs($fp,"$query\r\n");
while(!feof($fp))
{
$c=fgets($fp,1024);
if($c[0]!="%")
{
$lc++;
echo nl2br(htmlentities($c));
}
}
fclose($fp);
}
else
echo "keine Verbindung zu $host<br>";
}
?>
<br>
<form name="formular" action="whois.php3">
<input type=text name="query" size=60<? if($query) echo " value="$query""; ?>>
<input type=submit value="OK">
</form>
</html>
HTH,
Carsten