This script allows you to load .txt file with a lot of words and check a lot of domains in one time. There is no need anymore to check domain by domain. Just run this script and of course create .txt file with the keywords which you want to check.
Enjoy!
set_time_limit(3000);
$file_handle = fopen(“domains.txt”, “rb”);while (!feof($file_handle) ) {
$line_of_text = fgets($file_handle);
$parts = explode(‘=’, $line_of_text);//check
$final_domain = preg_replace(“/\s\s+/”, “”, $parts[0]);
$domain = $final_domain;
$url = “http://host.bg/order/DomainSearchResults.do?Body=”. $domain .”&Ext=”;
$input = @file_get_contents($url) or die(‘Could not access file: $url’);
$regexp = “<a\s[^>]*href=(\”??)([^\" >]*?)\\1[^>]*>(.*)<\/a>”;
if(preg_match_all(“/$regexp/siU”, $input, $matches)) {
$final_match = preg_replace(“/\s\s+/”, “”, $matches[3][10]);if (strip_tags($final_match) != “този домейн е мой”) {
echo “<strong>free domain</strong> – “. $final_domain. “<br />”;
}
else {
echo “taken – “. $final_domain . “<br />”;
}
}//END check
}fclose($file_handle);
Leave a reply