I am updating an old script that has stopped working. It uses this code to look up domain names and it does not work anymore if (function_exists('curl_init')) { $ch = curl_init('http://www.whois.net/whois_new.cgi?d=' . $_GET['domain']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, ''); curl_setopt($ch, CURLOPT_REFERER, ''); $data = curl_exec($ch); } else { $data = file_get_contents('http://www.whois.net/whois_new.cgi?d=' . $_GET['domain']); } if (eregi('no match found', $data)) { echo 'available'; } else { echo 'not-available'; }?> Code (markup): I found a new site and added it in place of the old but it still does not work. Anyone know why? if (function_exists('curl_init')) { $ch = curl_init('http://www.networksolutions.com/whois-search/' . $_GET['domain']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, ''); curl_setopt($ch, CURLOPT_REFERER, ''); $data = curl_exec($ch); } else { $data = file_get_contents('http://www.networksolutions.com/whois-search/' . $_GET['domain']); } if (eregi('no match found', $data)) { echo 'available'; } else { echo 'not- available'; }?> Code (markup):
Hello, I have checked the script and as per my knowledge the script is ok but the problem seems to be with whois provider (networksolutions.com and whois.net). Please make sure that they support or accept requests using PHP or curl script.
That is the link that they provide minus the Get['domain'] part. It is an actual free link for domain lookups. You can just append the domain name to the end of the link and it returns a result page. I have manually tried the original link and it does not seem to work anymore.
I got your problem could you please verify for me that Get['domain'] & input source(textbox) ID is same or not ? if no please correct it
This is open source domain whois checker script, I hope this will help you hxxp://ajaxdomaincheck.sourceforge.net/(@mod I am not sure that I am allowing to post link here if I am wrong please delete this link)