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