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
Old 11-26-2005, 02:50 PM Fastest Way To ...
Nikko's Avatar
Novice Talker

Posts: 9
Location: Norway
Trades: 0
What's the fastest way to check wheter a domain is available?

Thanks
Nikko is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-26-2005, 02:58 PM
TrentonD's Avatar
Ultra Talker

Posts: 253
Location: Calgary, Alberta, Canada
Trades: 0
Go to www.whois.com, and use their domain search!
__________________
Signature Coming Soon! :)
Please login or register to view this content. Registration is FREE
TrentonD is offline
Reply With Quote
View Public Profile Visit TrentonD's homepage!
 
Old 11-26-2005, 04:15 PM
Unknown.

Posts: 1,693
Trades: 0
If you search HotScripts for whois scripts theres plenty there!

Last edited by Dark-Skys99; 11-26-2005 at 05:12 PM..
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 11-26-2005, 05:06 PM
madkad's Avatar
madkad-hosting.com

Posts: 310
Location: UK
Trades: 0
lol try and buy it thats what i do and were ever you are trying to buy it from will tell you if you can have it or not
__________________

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

Great Hosting For You
madkad is offline
Reply With Quote
View Public Profile Visit madkad's homepage!
 
Old 11-27-2005, 02:25 AM
Nikko's Avatar
Novice Talker

Posts: 9
Location: Norway
Trades: 0
I'm not looking for a website to check domain names, I'm looking for a function in PHP. That's why I'm posting in this, the PHP, forum. And the chilly-thingy script was not helpful. I just wonder if there are a function that do what I want, check wheter a domain is free or not, faster than fopen() -- because fopen() is quite slow.

So are there any faster ways to do this?

Thanks
Nikko is offline
Reply With Quote
View Public Profile
 
Old 11-28-2005, 04:22 PM
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
http://www.whois.org I use it so much.

Some domain services have a domain aviable check thingy.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 11-29-2005, 06:07 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
Ive got a php5 whois

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'); 
It should not take you much to reverse engineer it to php4.

Dont forget to add some talkupation to my account if you use it (put plenty on too) .

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

Last edited by ibbo; 11-29-2005 at 06:15 AM..
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Fastest Way To ...
 

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.26297 seconds with 12 queries