SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: whois script

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2001
    Location
    Tacoma, WA
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    whois script

    Hi,

    Does anyone know where i can find a whois script that will check to see if a domain is available or already registered?
    I'm sure this topic has already been asked on sitepointforums but i couldnt dig up anythin through the search.

    I've tried hotscripts.com and found a couple but they sometimes work and sometimes not.

    thanks

    sang

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here ya go:

    PHP Code:
        function freddysWhois($domain$server) {
            
    $fp fsockopen ($server43$errno$errstr30);
            if (!
    $fp) {
                print 
    "Error String: $errstr; Error No. ($errno)<br>\n";
                } 
            else {
                
    fputs ($fp"$domain\r\n");
                while (!
    feof($fp)) {
                    
    $data .= fgets ($fp,128);
                    }
                
    fclose ($fp);
                }
        return 
    $data;
        } 

    print 
    nl2br(whois("sitepoint.com""rs.internic.net")); 
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Addict lveale's Avatar
    Join Date
    Jun 2001
    Location
    Dublin
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whois PHP classes

    Hi,

    there's a nice class that will check alot of whois servers on:
    devshed.

    Give that a try, it works quite nicely

  4. #4
    Net Senior Citizen tommatthews's Avatar
    Join Date
    Apr 2001
    Location
    Sydney Australia
    Posts
    869
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is a good one Matt's Whois


    affordable website design

    :: sydney australia ::


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •