$fd= fopen("daten/count.dat","r+"); $count= fgets($fd,10); if(!count) $count=0; rewind($fd); $count++; fwrite($fd, $count); fclose($fd); ?>