Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 04-24-2006, 06:02 AM Domain finder
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
I creating a website and I would like to put on it the option for people to see if a domain is avalible, like you get when you regeister a domain it has to be checked to see if its in use or not.
What langue can i do this in?
Many thanks
Rachel
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
 
Register now for full access!
Old 04-24-2006, 07:20 AM Domain finder - PHP??
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
I am creating a website and I would like to put on it the option for people to see if a domain is avalible, like you get when you regeister a domain it has to be checked to see if its in use or not.
Can i do this in php?? If so how??
Many thanks
Rachel
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 04-24-2006, 12:24 PM Re: Domain finder
Novice Talker

Posts: 10
Location: Doncaster, UK
Trades: 0
There is a Whois Lookup available online, I've just got to find it.
robterrace is offline
Reply With Quote
View Public Profile Visit robterrace's homepage!
 
Old 04-24-2006, 05:41 PM Re: Domain finder
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
Hmm. I was looking for something like this too.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!

Last edited by Silent77; 04-24-2006 at 05:44 PM..
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 04-24-2006, 09:53 PM Re: Domain finder
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
This could be way wrong but maybe verisign.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-25-2006, 09:35 AM Re: Domain finder
Novice Talker

Posts: 6
Trades: 0
I think what you need as an API which you can code directly into your own website. This would then speak to the supplier and return the results. You can usually arrange this with your usual hosting/domain supplier
__________________

Please login or register to view this content. Registration is FREE

Intelligent Solutions that work

Please login or register to view this content. Registration is FREE
tonic is offline
Reply With Quote
View Public Profile
 
Old 04-25-2006, 10:47 AM Re: Domain finder
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Quote:
Originally Posted by tonic
I think what you need as an API which you can code directly into your own website. This would then speak to the supplier and return the results. You can usually arrange this with your usual hosting/domain supplier
Thanks i was hoping it would be something i could coad in tho and cheak it - like in php you can verify email address - i dont know something like that.

I will keep looking and post it when ive found the answer!!
Thanks
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 04-25-2006, 07:24 PM Re: Domain finder
Novice Talker

Posts: 10
Location: Doncaster, UK
Trades: 0
There is an ASP version on the web, available http://webwizguide.com/asp/sample_sc...pplication.asp

Hope This Helps.
robterrace is offline
Reply With Quote
View Public Profile Visit robterrace's homepage!
 
Old 04-25-2006, 08:00 PM Re: Domain finder
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Here's a good one I've used in the past:
http://www.ep-dev.com/scripts-4.php
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 04-26-2006, 10:52 AM Re: Domain finder - PHP??
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
PHP Code:
class whois
{
    const 
timeout 30;
    const 
whoishost 'whois.internic.net';
    
    public static function 
lookup($domain){

       
$result "";
       
$errno 0;
       
$errstr='';
    
       
$fd fsockopen(whois::whoishost,43$errno$errstrwhois::timeout);

       if (
$fd){
             
fputs($fd$domain."\015\012");
           while (!
feof($fd))    {
            
$result .= fgets($fd,128) . "<br />";
           }
           
fclose($fd);
        }
         return 
$result;
     }
}

echo 
whois::lookup('search-for.com'); 
This will dump some info for you reguarding the domin in question. If it is registered it will state that it is but if not you get a clear message stating so.

I.E

No match for "yoursite.com"

So to be precise and just grab a yes or no you could comment out " echo whois::lookup('search-for.com'); " and go for a more usable

PHP Code:
$domain 'search-for.com';
$result whois::lookup($domain);  

if(
strstr($result"No match")){
       echo 
$domain "seems to be available";
}else{
    echo 
$domain "is in use";
    
//echo "<hr>";
    //echo $result;

Hope its usefull.
Ibbo

P.S its a php5 version, if you need a 4 I think i can sort one out.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf

Last edited by ibbo; 04-26-2006 at 10:53 AM..
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Domain finder
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.90144 seconds with 12 queries