SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Domain availability php script

    I need a simple domain (non)availability script-user types the domain into
    a text box and selects the tld from a drop down-the script returns whether the
    domain is available or not- it does NOT reveal the whois info - just a simple status check.

    Thanks

  2. #2
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    use this to check a url:


    PHP Code:
    <?
    $handle   
    curl_init("http://www.google.com");
        if (
    false === $handle){
            
            echo 
    "fail";
        } else{
            echo 
    "found";
            
        }
    ?>

  3. #3
    King of Paralysis by Analysis bronze trophy
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    5,840
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kai555

    Many domains are registered but do not resolve as there are no name servers set up for them, that wouldn't work.


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
  •