Surely you are familiar with the term domain name checker, this is usually contained in the website domain and hosting provider. Before you buy a domain name previously had to check whether the domain name would you buy that have been there or not.
The function of this script is to check for the domain (have anyone have or have not already).
DEMO : http://blogexample.co.cc/domainchecker/
An easy way, just need two files for this, here's how made:
Save with the name
index.php
And create a file with the name
check.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Description" content="Domain Checker Online" />
<meta name="Keywords" content="domain checker,domain check, script example, blog example, free script download" />
<meta name="Author" content="z0y4" />
<meta name="Robots" content="index,follow" />
<link href='http://blogexample.co.cc/15.gif' rel='icon' type='image/vnd.microsoft.icon'/>
<title>Domain Check Online | Script Example | Free Download Script and Source Code</title>
<style type="text/css">
.true {
color:#00CC00;
}
.false {
color:#FF0000;
}
h1{
text-align:center;
}
a, a:hover, a:visited {
text-align:center;
text-decoration:none;
color:#FF0000;
}
</style>
</head>
<body><p/>
<h1>Domain Checker Online</h1>
<form action="check.php" method="POST">
<table align="center">
<tr>
<td>Domain</td>
<td><input type="text" name="domain"></td>
<td>
<select name="select">
<option value=".com">.com</option>
<option value=".net">.net</option>
<option value=".org">.org</option>
<option value=".biz">.biz</option>
<option value=".info">.info</option>
<option value=".mobi">.mobi</option>
<option value=".ws">.ws</option>
<option value=".co.id">.co.id</option>
<option value=".or.id">.or.id</option>
<option value=".go.id">.go.id</option>
<option value=".sch.id">.sch.id</option>
<option value=".ac.id">.ac.id</option>
<option value=".mil.id">.mil.id</option>
<option value=".web.id">.web.id</option>
<option value=".tv">.tv</option>
<option value=".cn">.cn</option>
<option value=".cc">.cc</option>
</select>
</td>
<td align="right"><input type="submit" name="process" value="Check Domain"></td>
</tr>
</table>
</form>
<?php
if($_POST[process]){
$domain_name= "$_POST[domain]"."$_POST[select]";
$arrHost = @gethostbynamel("$domain_name");
if(empty($arrHost)){
echo "<center class="true">Domain <b>$domain_name</b> is available!</center>";
}
else{
echo "<center class="false">Domain <b>$domain_name</b> is not available!</center>";
}
}
?>
<br/>
<center><script type="text/javascript"><!--
google_ad_client = "pub-3781889617785421";
/* 468x60, created 1/1/10 */
google_ad_slot = "0907989825";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br/>
<a href="http://scriptexample.blogspot.com">www.scriptexample.blogspot.com</a> | <a href="http://blogexample.co.cc">www.blogexample.co.cc</a>
</center>
</body>
</html>
Download Sample Script "Domain Checker"
Click Here
Document PHP
Just Comment. Not Spam!