ISRAEL
07.09.2005, 04:36
File ip.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>
<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>