Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
whois_test.php
Go to the documentation of this file.
1 #!/usr/bin/php
2 <?php
3 
4 // test de la fonction whois :
5 
6 include("../bureau/class/m_err.php");
7 include("../bureau/class/m_dom.php");
8 
9 $err=new m_err();
10 $dom=new m_dom();
11 
12 $doms=array("dns.be","eurid.eu","sonntag.name","alternc.com","alternc.org","alternc.net","sonntag.fr");
13 foreach($doms as $d) {
14  echo "\n";
15  echo "Searching for whois for domain [$d]\n";
16  $srv=$dom->whois($d);
17  if (is_array($srv)) {
18  foreach($srv as $s) {
19  echo " Nameserver: $s\n";
20  }
21  } else {
22  echo " No nameserver found !\n";
23  }
24 }
25 
26 ?>