$file = "counter.log"; //Pfad anpassen $counter = fopen ($file,"r"); $string = fread($counter, filesize ($file)); fclose($counter); $zahl = intval (substr ($string,6)); $zahl++; $counter = fopen($file, "w+"); $string = fwrite($counter, "&zahl=".($zahl)); fclose($counter); ?>