Code: Select all
$snip = explode(" ", $whoisresult);
if (trim($snipї0]) == "Whois")
{
echo $domain_infoї'complete'] . " is Available";
}
else
{
echo $domain_infoї'complete'] . " is Not Available";
}Can anyone give me some ideas on how I can get 100% accurate results? And why did the person who wrote this code use the trim function, I would assume since the array is divided by " ", there would be no way it could have whitespace in the string, is this something I can remove?Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
TEST.COM.MY
TEST.COM.AU
TEST.COM
To single out one record, look it up with "xxx", where xxx is one of the
of the records displayed above......