Aber 99%

Hier ein Auszug der Variante mit IP Logging:
PHP-Code:
$countfile = "count.dat";
(!file_exists($countfile)) ? $fd = fopen($countfile,"w+") : $fd = fopen($countfile,"r+");
if (flock($fd, 2)) {
$countfile = explode("|",fgets($fd,100));
$count = $countfile[0];
if ($REMOTE_ADDR != $countfile[1]) {
(!$count) ? $count=1 : $count++;
rewind ($fd);
fwrite ($fd, $count."|$REMOTE_ADDR");
}
} else {
echo "Fehler. Kann auf die Datei $countfile nicht zugreifen";
exit;
}
flock($fd, 3);
fclose ($fd);
Das komplette Script gibt es wieder als Attachment