Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Domain lookup PHP Script

Author:mike - Sat Apr 23 19:39:48 2005

Call with:

script.php?domain=nisse&tld=dk


<?

$response['dk']='No entries found for the selected source';
$response['com']='No match for "'.strtoupper($_REQUEST['domain'].".".$_REQUEST['tld']).'"';
$response['net']='No match for "'.strtoupper($_REQUEST['domain'].".".$_REQUEST['tld']).'"';
$response['org']='NOT FOUND';

exec("whois ".$_REQUEST['domain'].".".$_REQUEST[tld],$dat);

if (preg_match("/".$response[$_REQUEST['tld']]."/i", implode($dat))) 
        {
                echo "The domain is free for registration!";
        } else {
                echo "The domain is <strong>not</strong> free for registration!";
        }

?>
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk