domain availability script

Please check this script problem is when i upload it to my web server and trying to search it returns following error you can check here at http://usm84.web44.net and script is shown below

index.php

99points.info : ajax domain name check
<div id="Heading">Domain Checker</div>

<form method="post" action="./" id="form"> 

	<input type="text" autocomplete="off" id="Search" name="domain"> 
	<input type="submit" id="Submit" value="Submit">

</form>


<div id="loading">Please wait...<img src="load.gif"></img></div>
	
 <div id="results" style="width:420px; height:600px;" align="left">
	
 </div>	

and

process.php

<?php set_time_limit(0); ob_start(); ########### Extensions to be checked $extensions = array( '.com' => array('whois.crsnic.net','No match for'), '.info' => array('whois.afilias.net','NOT FOUND'), '.net' => array('whois.crsnic.net','No match for'), '.co.uk' => array('whois.nic.uk','No match'), '.nl' => array('whois.domain-registry.nl','not a registered domain'), '.ca' => array('whois.cira.ca', 'AVAIL'), '.name' => array('whois.nic.name','No match'), '.ws' => array('whois.website.ws','No Match'), '.be' => array('whois.ripe.net','No entries'), '.org' => array('whois.pir.org','NOT FOUND'), '.biz' => array('whois.biz','Not found'), '.tv' => array('whois.nic.tv', 'No match for'), ); ########### if(isset($_GET['domain'])) { $domain = str_replace(array('www.', 'http://'), NULL, $_GET['domain']); if(strlen($domain) > 0) { foreach($extensions as $extension => $who) { $buffer = NULL; $sock = fsockopen($who[0], 43) or die('Error Connecting To Server:' . $server); fputs($sock, $domain.$extension . "\r\n"); while( !feof($sock) ) { $buffer .= fgets($sock,128); } fclose($sock); if(eregi($who[1], $buffer)) { echo '

Available' . $domain. '' . $extension .' is Available

'; } else { echo '

Taken' . $domain . '' .$extension .' is Taken

'; } echo '
'; ob_flush(); flush(); sleep(0.3); } } else { echo 'Please enter the domain name'; } } ?>

please help me out

Very interesting display on the link you sent. I liked the running graphic!

Well, on many hosting sites, you can not set the timeout for a script to infinity.
It appears your hosting site does not allow this to be set. Therefore, it times out normally.
Once it times out it shows the site it is timing out on. In this case, for my site I tried searching on,
it was: “unable to connect to whois.crsnic.net:43” …

I attempted to check out this site “whois.crsnic.net” and I can not connect to it.

Online there is a lot of talk of this site. It appears it is now down, so you need to not use it in your routines! Hope that helps…

Sponsor our Newsletter | Privacy Policy | Terms of Service