Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   Whois скрипт на PHP (https://forum.antichat.xyz/showthread.php?t=9299)

ISRAEL 07.09.2005 04:36

Whois скрипт на PHP
 
File ip.php
PHP код:

<html>
<head>
  <title>IP information</title>
</head>
<body>
  <center>
     <H1>Информация об IP-адресе</H1>
       <FORM action=ip.php method=post>
         <INPUT type=text name=ip size=35>
         <input type=submit value='Проверить'>
       </form>
  </center>

<?php
  
if ($ip!="") {
    
$sock fsockopen ("whois.ripe.net",43,$errno,$errstr);
     
    if (!
$sock) {
      echo(
"$errno($errstr)");
      return;
    }
    else {
      
fputs ($sock$ip."\r\n");
      

      while (!
feof($sock)) {
        echo (
str_replace(":",":      ",fgets ($sock,128))."<br>");
 
      }
    }
    
fclose ($sock);
    
  }
?>

</body>
</html>


RevenAnt 07.09.2005 09:20

оо.... thx ) всегда полезно ето дело )

ISRAEL 08.09.2005 08:09

Цитата:

Сообщение от RevenAnt
оо.... thx ) всегда полезно ето дело )

you well come )))

qBiN 26.09.2005 08:43

Гы гы гы :))))))))
Копировать листинг файлов из статей других людей не этично :)))
можно заразится дуростью))))


Время: 22:58