300) { $cip2 = fopen("count_ip.txt","r+"); fwrite($cip2, $dummy_ip); fclose($cip2); } $datei = fopen("count.txt","r+"); $count_alt = fgets($datei, 10); $datei2 = fopen("count_ip.txt","r+"); $ip_alt = fgets($datei2, 20); fclose($datei2); if($ip_alt != $REMOTE_ADDR) { $count_alt++; rewind($datei); fwrite($datei, $count_alt); } fclose($datei); $datei2 = fopen("count_ip.txt","w"); fwrite($datei2, $REMOTE_ADDR); fclose($datei2); echo $count_alt; ?>