Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2007
    Posts
    269
    Thanks
    28
    Thanked 0 Times in 0 Posts

    Fatal error: Call to undefined function dns_get_record()

    despite i use php5 my codes give following error

    PHP Code:
    <?php
    /* Request "ANY" record for php.net,
       and create $authns and $addtl arrays
       containing list of name servers and
       any additional records which go with
       them */
    $result dns_get_record("php.net"DNS_ANY$authns$addtl);
    echo 
    "Result = ";
    print_r($result);
    echo 
    "Auth NS = ";
    print_r($authns);
    echo 
    "Additional = ";
    print_r($addtl);
    ?>

    error:
    Code:
    Fatal error: Call to undefined function dns_get_record() in C:\xampp\htdocs\index.php on line 7

  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    Note: This function is not implemented on Windows platforms, nor does it (currently) work on *BSD systems. Try the PEAR class Net_DNS.

    ...................................


  •  

    Posting Permissions

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