| 
 
			
			example.php<?
 require_once("whois.php");
 ?>
 <html>
 <head>
 <title>скрипт WHOIS - пример использования</title>
 </head>
 <body>
 <form method="get">
 <input type="text" name="domain"><input type="submit" value="WHOIS">
 </form>
 <hr>
 <?
 if(isset($_GET["domain"]) && strlen($_GET["domain"])>0)
 {
 $target=$_GET["domain"];
 $whois=new whois();
 $whois->zonelookup($target);
 if($whois->ERROR==0)
 {
 if(is_array($whois->RAWINFO) && count($whois->RAWINFO)>7 && $whois->FOUND==1)
 {
 echo("<p><b>".$target."</b><br>IP: ".$whois->IP."</p><pre>");
 foreach($whois->RAWINFO AS $str)
 {
 echo($str."\n");
 }
 echo("</pre>");
 echo("<p>DNS INFO:</p><pre>");
 foreach($whois->DNSINFO AS $str)
 {
 echo($str."\n");
 }
 echo("</pre>");
 }else
 {
 echo("<p>".$target." <b>Free</b></p>");
 }
 }else
 {
 echo("<p>Requirest is fail</p>");
 }
 }
 ?>
 <hr>
 </body>
 </html>
 </body>
 </html>
 
 
				__________________Верные слова неизящны, изящные слова неверны
Хостинг |