View Single Post
Old 05-30-2013, 04:28 AM  
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
are you guys wanting one that just alerts you if it is ready to be regged or one that auto regs?

here is one that you can set to cron on your server daily and it will email you if it is ready

Code:
<?php


$domain_to_check = "DomainHere.com";

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'http://whois.domaintools.com/'.$domain_to_check);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$buffer = curl_exec($ch);

if(strstr($buffer, "This domain name is not registered")) {
	echo "The domain is available";
	mail("your email here", "Your domain: ".$domain_to_check." is available" ");
} else {
	
}

?>
gfy coders feel free to pick this apart and make it better
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote