[advanced search]
Results from the most recent live auction are here.
27 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 01-20-2007, 04:10 PM   · #1
Stitch
NamePros Member
 
Trader Rating: (7)
Join Date: Dec 2006
Posts: 141
NP$: 0.00 (Donate)
Stitch is on a distinguished road
Arrow [PHP] Domain Availabilty Checker - Checks tlds - Version: 1.0.0.0

Hello,

This is my first script on this site, and seeing Matthew. 's Script I decided to make one a little different. Instead of checking multiple domains, this one checks multiple tlds!


Demo


A live demo of this can be found here: http://70.85.180.226/~thetopto/Scripts/Domain_Checker/

Some of this script uses Matthews. code, I obviously have permission as Matt is a good friend and yes I did ask first.

How To Use:


Enter something like:
  1. techtuts
  2. namepros
  3. pixel2life
  4. lmao
  5. sitename

and it will return the availability of each tld told to in the script. Saves typing all domains out in matts

Anyway, your waiting to see the script arent ya


The Script:


PHP Code:
<?php
set_time_limit
(0);
ob_start();

/*
| ---------------------------------------------------
| > Script Name: Domain Availabilty Checker
| > By: Adam
| > Website: www.portfoliosp.com
| > Version: 1.0.0.0
|
| -- Credits:
|     > With thanks to Matt Jewell (Matthew.) | www.mattjewell.com
|
| -- IMPORTANT --
|     This copyright notice must be left intact. Feel free to modify this script.
|    This script may NOT be sold under any circumstances!
| ---------------------------------------------------
*/


include 'inc/dnservers.php';    

###########################################

if(isset($_POST['submit']))
{
    
$domain = str_replace(array('www.', 'http://'), NULL, $_POST['domain']);
    
    if(
strlen($domain) > 0)
    {
        echo
'<h2>Checking Domain</h2>';
        echo
'Please wait while the results are processed....<br /><br />';
        
        foreach(
$ext 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
'<div style="color: green;">' . $domain . $extension .' is Available</div>';
                }
                else
                {
                    echo
'<div style="color: red;">' . $domain . $extension .' is Taken</div>';
                }
                
        
ob_flush();
        
flush();
        
sleep(0.3);
        
        }
        
        echo
'<h2>Completed</h2>';
    }
    else
    {
        echo
'Please enter the domain name';
    }
}
else
{
?>
<div style="text-align: center">
    <form method="post">
        <input type="text" name="domain" />
        <br /><br /><input type="submit" name="submit" value="Check Availability" style="font-size: 10pt;" />
        
    </form>
</div>
<?php
} // The End
?>


This is the first version of this script and may have a few bugs.

Script details:

Quote:
/*
| ---------------------------------------------------
| > Script Name: Domain Availabilty Checker
| > By: Adam
| > Website: www.portfoliosp.com
| > Version: 1.0.0.0
|
| -- Credits:
| > With thanks to Matt Jewell (Matthew.) | www.mattjewell.com
|
| -- IMPORTANT --
| This copyright notice must be left intact. Feel free to modify this script.
| This script may NOT be sold under any circumstances!
| ---------------------------------------------------
*/




Download


Download script HERE

-----

The script is free to use, and you may distribute. You must NOT sell in anyway. You can modify it if you wish. Just leave copyright intact!

Enjoy, and look out for future versions!

Please post bugs and suggestions below.

Thanks,
Adam


Please register or log-in into NamePros to hide ads

Last edited by . Adam . : 01-20-2007 at 04:15 PM.
Stitch is online now   Reply With Quote
Old 01-20-2007, 04:45 PM   · #2
Matthew.
Stud Sausage
 
Location: England
Trader Rating: (25)
Join Date: Dec 2006
Posts: 1,545
NP$: 32.41 (Donate)
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
Adoption Breast Cancer Breast Cancer Cancer Survivorship
Smells like Matt.

Thanks for the credit, I'll get around to recoding mine at some point, i don't like how it's done.
__________________
My NamePros Tools
(firefox plugin, google gadget etc)
Matthew. is offline   Reply With Quote
Old 01-20-2007, 04:50 PM   · #3
Stitch
NamePros Member
 
Trader Rating: (7)
Join Date: Dec 2006
Posts: 141
NP$: 0.00 (Donate)
Stitch is on a distinguished road
Matt, I have a great idea

I'll talk to you about it over MSN, when you get your butt online
Stitch is online now   Reply With Quote
Old 01-20-2007, 06:33 PM   · #4
kleszcz
 
kleszcz's Avatar
 
Trader Rating: (232)
Join Date: Jul 2006
Posts: 3,290
NP$: 252.35 (Donate)
kleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond reputekleszcz has a reputation beyond repute
Marrow Donor Program Multiple Sclerosis
Thanks. Nice one. How about additional tlds? .mobi, .cc and .in
__________________
BQB.com auction: CQAW.com, UJMH.com
LLLL.coms: ALL 2 Premium Letters + U + K
kleszcz is offline   Reply With Quote
Old 01-21-2007, 04:24 AM   · #5
Stitch
NamePros Member
 
Trader Rating: (7)
Join Date: Dec 2006
Posts: 141
NP$: 0.00 (Donate)
Stitch is on a distinguished road
You can easily add support for .cc, im not sure about .in and .mobi . I'll put them in the next version.

But until the next version, open up inc/dnservers.php

Find:
PHP Code:
'.be'         => array('whois.ripe.net','No entries'),


Add After:
PHP Code:
'.cc'         => array('whois.nic.cc','No match'), // Requested


Save and close.

Done This will be done in the next release
Stitch is online now   Reply With Quote
Old 01-21-2007, 08:37 AM   · #6
Matthew.
Stud Sausage
 
Location: England
Trader Rating: (25)
Join Date: Dec 2006
Posts: 1,545
NP$: 32.41 (Donate)
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by . Adam .
You can easily add support for .cc, im not sure about .in and .mobi . I'll put them in the next version.



PHP Code:
// Add after '),

'.in'      => array('whois.inregistry.net', 'NOT FOUND'),
'.mobi'    => array('whois.dotmobiregistry.net', 'NOT FOUND'),
__________________
My NamePros Tools
(firefox plugin, google gadget etc)
Matthew. is offline   Reply With Quote
Old 01-21-2007, 10:31 AM   · #7
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
Is the .3 seconds enough to not get rate limited by TLDs like .org and .in?
Dan is offline   Reply With Quote
Old 01-21-2007, 10:39 AM   · #8
Matthew.
Stud Sausage
 
Location: England
Trader Rating: (25)
Join Date: Dec 2006
Posts: 1,545
NP$: 32.41 (Donate)
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by Dan
Is the .3 seconds enough to not get rate limited by TLDs like .org and .in?



The .3 seconds was added by me to actually stop the script killing itself, if removed occasionally the script will start spitting errors. (to be exact you cannot connect to the servers)

Rate limiting is how many requests you can make to the server in a time period yes? I don't actually know, that's my guess lol.

If so i personally haven't had a problem with mine and no one else has reported one so i would assume yes to your question
__________________
My NamePros Tools
(firefox plugin, google gadget etc)
Matthew. is offline   Reply With Quote
Old 01-22-2007, 08:06 AM   · #9
3l3ctr1c
DNOA Member
 
Trader Rating: (6)
Join Date: May 2006
Posts: 256
NP$: 68.15 (Donate)
3l3ctr1c has a spectacular aura about3l3ctr1c has a spectacular aura about
3l3ctr1c is offline  
  Reply With Quote
Old 01-25-2007, 07:42 AM   · #10
abcde
NamePros Regular
 
Name: Steven
Trader Rating: (11)
Join Date: Feb 2005
Posts: 476
NP$: 919.00 (Donate)
abcde has a spectacular aura aboutabcde has a spectacular aura about
when i tried with ".org" i received this message:

Code:
Warning: fsockopen() [function.fsockopen]: unable to connect to whois.pir.org:43 (Connection timed out) in /home/*****/public_html/dnlookup/index.php on line 75 Error Connecting To Server:whois.pir.org



anyway, this is a great script.

Last edited by abcde : 01-25-2007 at 09:45 PM.
abcde is offline   Reply With Quote
Old 03-11-2007, 11:08 PM   · #11
navjotjsingh
BlahBlahBlah...
 
navjotjsingh's Avatar
 
Name: Navjot Singh
Location: India
Trader Rating: (37)
Join Date: Oct 2005
Posts: 1,941
NP$: 0.51 (Donate)
navjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to behold
Marrow Donor Program
Some problems in IE 6.

It works in IE 6 only when I click Check Availability button and not when I press enter after entering the value in search box.

Last edited by navjotjsingh : 03-11-2007 at 11:19 PM.
navjotjsingh is offline   Reply With Quote
Old 03-11-2007, 11:34 PM   · #12
cheeta
NamePros Regular
 
cheeta's Avatar
 
Name: Choto Cheeta
Location: 220.225.82.33
Trader Rating: (3)
Join Date: Feb 2006
Posts: 389
NP$: 178.85 (Donate)
cheeta is on a distinguished road
hey I cant download because the download link is broken
__________________
LiveTV.ws - Live Internet TV
cheeta is offline   Reply With Quote
Old 03-11-2007, 11:50 PM   · #13
whitebark
DNOA Member
 
whitebark's Avatar
 
Name: Roy
Location: Canada
Trader Rating: (105)
Join Date: Jul 2006
Posts: 2,785
NP$: 766.15 (Donate)
whitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond repute
Here is a huge request - I'd even pay for this to be included:

When a domain name is searched and found to be available the available name should become an active link to where the searcher can then register the domain. Of course the hyperlink would contain our affiliate code so we get a piece of the action.

It would need the ability to put in affiliate codes to different registrars for each .tld or group of tld's.

As well, for user satisfaction - the search box should remain displayed after a search to entice them to search again instead of closing the browser window.

Again - I will pay to have these features added.

Roy
whitebark is offline  
  Reply With Quote
Old 03-29-2007, 12:10 PM   · #14
cyberoptik
NamePros Regular
 
Name: Ron
Location: Chicago Burbs
Trader Rating: (40)
Join Date: Aug 2003
Posts: 941
NP$: 0.01 (Donate)
cyberoptik is a glorious beacon of lightcyberoptik is a glorious beacon of lightcyberoptik is a glorious beacon of lightcyberoptik is a glorious beacon of lightcyberoptik is a glorious beacon of light
Download link / site are down. Please repost a new url .
__________________
Chicago Web Design
cyberoptik is offline   Reply With Quote
Old 06-23-2007, 05:14 PM   · #15
ethix
Senior Member
 
ethix's Avatar
 
Location: Australia
Trader Rating: (29)
Join Date: Aug 2006
Posts: 1,139
NP$: 137.80 (Donate)
ethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to behold
Originally Posted by whitebark
Here is a huge request - I'd even pay for this to be included:

When a domain name is searched and found to be available the available name should become an active link to where the searcher can then register the domain. Of course the hyperlink would contain our affiliate code so we get a piece of the action.

Roy


im pretty sure
http://www.cj-design.com/products/f.../cjdomainwhois/
does what you require and its free

EDIT: sorry bout replying to such an old thread i did notice the time stamps on the post till after i replied
ethix is offline   Reply With Quote
Old 06-23-2007, 05:26 PM   · #16
whitebark
DNOA Member
 
whitebark's Avatar
 
Name: Roy
Location: Canada
Trader Rating: (105)
Join Date: Jul 2006
Posts: 2,785
NP$: 766.15 (Donate)
whitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond reputewhitebark has a reputation beyond repute
Thanks ethix - I'm going to take a look at it now.
whitebark is offline  
  Reply With Quote
Old 06-23-2007, 06:31 PM   · #17
OctaneInv
Octane Media Works
 
OctaneInv's Avatar
 
Name: Ryan
Location: Upstate, NY
Trader Rating: (31)
Join Date: Apr 2007
Posts: 852
NP$: 15.00 (Donate)
OctaneInv is a glorious beacon of lightOctaneInv is a glorious beacon of lightOctaneInv is a glorious beacon of lightOctaneInv is a glorious beacon of lightOctaneInv is a glorious beacon of light
Ethix, thank you for reviving the thread!

I was looking for this!
__________________
actionjunkies
A ShiftyMedia and Octane Media Works Production

comingsoon
OctaneInv is offline   Reply With Quote
Old 06-23-2007, 07:18 PM   · #18
ethix
Senior Member
 
ethix's Avatar
 
Location: Australia
Trader Rating: (29)
Join Date: Aug 2006
Posts: 1,139
NP$: 137.80 (Donate)
ethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to beholdethix is a splendid one to behold
you are welcome guys/gals
ethix is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Build your NameBrand domainsubway.com Arcade Script
Advertise your business at NamePros
All times are GMT -7. The time now is 02:38 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0