10-23-2007, 01:44 PM
|
#10 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
I did one of these a year or so ago, and although the code's not that good any more (edit: updated it :)), it does still work. It may come in handy if you do decide to continue.
PHP Code:
$szAddress = sprintf('http://www.whois.net/whois_new.cgi?d=%s&tld=%s', $szDomainNoExt, $szDomainExt);
curl_setopt($pCurl, CURLOPT_URL, $szAddress);
curl_setopt($pCurl, CURLOPT_HEADER, true);
curl_setopt($pCurl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($pCurl, CURLOPT_FOLLOWLOCATION, true);
$szData = curl_exec($pCurl);
curl_close($pCurl);
if(strpos(strip_tags($szData), 'No match found for'))
{
return false;
}
return true;
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|