How to Check Domain Availability using PHP
<?php
function checkDomainAvailability($domain_name){
$server = 'whois.crsnic.net';
// Open a socket connection to the whois server
$connection = fsockopen($server, 43);
if (!$connection) return false;
// Send the requested doman name
fputs($connection, $domain_name."\r\n");
// Read and store the server response
$response_text = ' :';
while(!feof($connection)) {
$response_text .= fgets($connection,128);
}
// Close the connection
fclose($connection);
// Check the response stream whether the domain is available
if (strpos($response_text, 'No match for')) return true;
else return false;
}
$domainname = 'anilbuddha.com';
if(checkDomainAvailability($domainname)) echo 'Domain : '.$domainname.' is Available';
else echo 'Domain : '.$domainname.' is Already Taken';
?>
PHP Tutorial, PHP Help, Javascript Tutorial, Javascript Help, MySQL Tutorial, MySQL Help,Personal Wishes, Images,Download Tutorials,MySQL Downloads,Download Softwares.
Saturday, July 31, 2010
Wishing all my Friends a Happy Friendship Day
Friendship is not about finding similarities, it is about respecting differences. You are not my friend coz you are like me, but because i accept you and respect you the way you are.
Wishing All my Friends a Happy Friendship Day......
Tuesday, July 27, 2010
Download DonSeenu Songs
Download the latest Songs of Don Seenu
Starring Ravi teja, Shreya saran.
For Download, Click Here
Source: southmp3.net
Starring Ravi teja, Shreya saran.
For Download, Click Here
Source: southmp3.net
Gmail Type Chat using PHP & Jquery
Need Gmail type chat using PHP & Jquery....
Here is the applicaion, download the file here.
For file download, click here
Here is the applicaion, download the file here.
For file download, click here
Subscribe to:
Posts (Atom)