Hey, ich wollte mal etwas über "PHP" wissen folgendes.
ich bekomm das nicht so ganz hin, das wenn jemand auf meine
Seite kommt das sich die IP Speichert ..
kann sich das mal jemand anschauen?
<?php
$ip = $_SERVER['REMOTE_ADDR'];
function ip2country($ipv4) {
$sock = fsockopen("whois.ripe.net", 43);
fwrite($sock, $ipv4."\n");
while (!feof($sock)) {
$info .= fgetc($sock);
}
fclose($sock);
preg_match("/country:[ ]+([A-Z]{2})\n/", $info, $match);
if($match[1]) return $match[1];
else return 'n/a';
}
echo $country = ip2country($ip);
$replace = array(
?>
Bitte um hilfe (:







