Hi
I am using some code kindly presented on this forum but am having strange issues...
I use:
$fp = fsockopen("whois.arin.net", 43, &$errno, &$errstr, 10);
if(!$fp)
{
echo "Could not open connection to $server on port 43.\n";
echo "$errstr ($errno)<br>\n";
}
else
{
fputs($fp,"$domain\r\n");
while(!feof($fp))
{
echo fgets($fp,128);
}
fclose($fp);
}
And get the following error:
Warning: Wrong parameter count for fsockopen() in /home/mrs/public_html/php/whois2/whois.php3 on line 42
()
I also tried pfsockopen but got the same error - I am using PHP version 3.0.7
Thanks for any help
Darren