Saves the page counts of a webpage in a textfile (.txt) and writes it on the page.
/* counter */
$datei = fopen("countlog.txt","r"); //opens countlog.txt to read
$count = fgets($datei,1000);
fclose($datei);
$count=$count + 1 ;
echo "
echo "
echo "\n
" ;
$datei = fopen("countlog.txt","w"); // opens to write and deletes the old count
fwrite($datei, $count);
fclose($datei);
?>
