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.

PHP Forum


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



Freelance Jobs

Reply
WHOIS Lookup suggestions
Old 01-21-2007, 01:54 PM WHOIS Lookup suggestions
Skilled Talker

Posts: 98
Name: james belcher
Trades: 0
Hi, Im looking for a WHOIS lookup for my site. I have used CWHOIS but am currently having problems getting it to work. Do you have any suggestions for alternative PHP look ups just incase I cant get this working?

I cant have a site with no look up. What ever you suggest would need to have simple instructions that I can follow.

Thanks

James B
James B is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2007, 02:05 PM Re: WHOIS Lookup suggestions
Banned

Posts: 905
Name: Travel Agent
Trades: 0
I'm unclear as to exactly what you want to know, so have you tried this ?
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 02:30 PM Re: WHOIS Lookup suggestions
Skilled Talker

Posts: 98
Name: james belcher
Trades: 0
Hi,

Im looking for the PHP files so I can instal myself and have hosted on my own site a page that users can look up to see if domains are available or to check who owns them.

One of the guys from CWHOIS is looking at my site now. They are really helpfull. Its a great product but I do feel slightly out of my depth. I also feel bad having to rely on other people to fix things when it should be me.

Cheers

James B
James B is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 04:37 PM Re: WHOIS Lookup suggestions
Defies a Status

Posts: 1,606
Trades: 0
Mrwhois is a gpl (free) product that you can use on your site.

Be sure to check the script there was a hidden affilate link in the one I downloaded.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 05:31 AM Re: WHOIS Lookup suggestions
Experienced Talker

Posts: 31
Trades: 0
try this...
Attached Files
File Type: zip whois_class.zip (7.7 KB, 3 views)
__________________

Please login or register to view this content. Registration is FREE
manilodisan is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 05:51 AM Re: WHOIS Lookup suggestions
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;
     }
}

$domain 'google.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;

Ibbo
__________________

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
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 01-26-2007, 12:09 PM Re: WHOIS Lookup suggestions
Skilled Talker

Posts: 98
Name: james belcher
Trades: 0
One of the guys from CWHOIS has fixed up my site. So im going to stick with this as the support has been fantastic.

Thanks for your help

James B
James B is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to WHOIS Lookup suggestions
 

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.24692 seconds with 13 queries