<bdo id='q4NBM'></bdo><ul id='q4NBM'></ul>
  • <legend id='q4NBM'><style id='q4NBM'><dir id='q4NBM'><q id='q4NBM'></q></dir></style></legend>
    <tfoot id='q4NBM'></tfoot>

    1. <small id='q4NBM'></small><noframes id='q4NBM'>

    2. <i id='q4NBM'><tr id='q4NBM'><dt id='q4NBM'><q id='q4NBM'><span id='q4NBM'><b id='q4NBM'><form id='q4NBM'><ins id='q4NBM'></ins><ul id='q4NBM'></ul><sub id='q4NBM'></sub></form><legend id='q4NBM'></legend><bdo id='q4NBM'><pre id='q4NBM'><center id='q4NBM'></center></pre></bdo></b><th id='q4NBM'></th></span></q></dt></tr></i><div id='q4NBM'><tfoot id='q4NBM'></tfoot><dl id='q4NBM'><fieldset id='q4NBM'></fieldset></dl></div>

        checkdnsrr() 返回错误信息

        时间:2023-09-23

        • <small id='aIfqH'></small><noframes id='aIfqH'>

          <tfoot id='aIfqH'></tfoot>

          <i id='aIfqH'><tr id='aIfqH'><dt id='aIfqH'><q id='aIfqH'><span id='aIfqH'><b id='aIfqH'><form id='aIfqH'><ins id='aIfqH'></ins><ul id='aIfqH'></ul><sub id='aIfqH'></sub></form><legend id='aIfqH'></legend><bdo id='aIfqH'><pre id='aIfqH'><center id='aIfqH'></center></pre></bdo></b><th id='aIfqH'></th></span></q></dt></tr></i><div id='aIfqH'><tfoot id='aIfqH'></tfoot><dl id='aIfqH'><fieldset id='aIfqH'></fieldset></dl></div>
          <legend id='aIfqH'><style id='aIfqH'><dir id='aIfqH'><q id='aIfqH'></q></dir></style></legend>
                  <bdo id='aIfqH'></bdo><ul id='aIfqH'></ul>

                    <tbody id='aIfqH'></tbody>
                  本文介绍了checkdnsrr() 返回错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  $dname = "accurst.com";
                  $recordexists = checkdnsrr($dname, "ANY");
                  
                  if ($recordexists) 
                    echo $dname." is taken. Sorry!<br>";
                  else 
                    echo $dname." is available!<br>";
                  

                  这是一个返回错误信息的示例域.它说它可用但是该域名是 2800 美元的优质域名有什么方法可以表明它不可用,因为它没有与任何人解除绑定?换句话说,如果我查找:accurstttt.com 现在可用accurst.com 应该说:不可用我尝试了其他不同的域名,但它一直显示它们可用,而它们是优质的.任何输入都会非常有帮助,谢谢

                  this is an example domain that returns the wrong info. It says its available but the domain is a premium domain name of 2800 dollars is there any way for it to show that it's not available since it is not untied to anyone? in other words if I look up: accurstttt.com now that's available and accurst.com should say : not available i tried different other domain names and it keeps showing they are available while they are premium. any input would be very helpful thank you

                  推荐答案

                  <?php
                  
                  function checkDomainAvailability($domain_name){
                  
                  $server = 'whois.crsnic.net';
                  
                  // Open a socket connection to the whois server
                  $connection = fsockopen($server, 43);
                  if (!$connection) return false;
                  
                  // Send the requested doman name
                  fputs($connection, $domain_name."
                  ");
                  
                  // Read and store the server response
                  $response_text = ' :';
                  while(!feof($connection)) {
                  $response_text .= fgets($connection,128);
                  }
                  
                  // Close the connection
                  fclose($connection);
                  
                  // Check the response stream whether the domain is available
                  if (strpos($response_text, 'No match for')) return true;
                  else return false;
                  }
                  
                  
                  $domainname = 'accurst.com';
                  
                  if(checkDomainAvailability($domainname)) echo 'Domain : '.$domainname.' is Available';
                  else echo 'Domain : '.$domainname.' is Already Taken';
                  
                  ?>
                  

                  这篇关于checkdnsrr() 返回错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:PHP 跨域共享会话 下一篇:在不使用 gethostbyname 的情况下从 DNS 获取 IP?

                  相关文章

                  <legend id='qby83'><style id='qby83'><dir id='qby83'><q id='qby83'></q></dir></style></legend>

                  <small id='qby83'></small><noframes id='qby83'>

                  <i id='qby83'><tr id='qby83'><dt id='qby83'><q id='qby83'><span id='qby83'><b id='qby83'><form id='qby83'><ins id='qby83'></ins><ul id='qby83'></ul><sub id='qby83'></sub></form><legend id='qby83'></legend><bdo id='qby83'><pre id='qby83'><center id='qby83'></center></pre></bdo></b><th id='qby83'></th></span></q></dt></tr></i><div id='qby83'><tfoot id='qby83'></tfoot><dl id='qby83'><fieldset id='qby83'></fieldset></dl></div>
                  1. <tfoot id='qby83'></tfoot>

                      • <bdo id='qby83'></bdo><ul id='qby83'></ul>