I currently have this
<?php
/* counter */
//opens countlog.txt to read the number of hits$datei =
fopen("countlog.txt","r");$count =
fgets($datei,1000);fclose($datei);$count=$count + 1 ;
// opens countlog.txt to change new hit number$datei =
fopen("countlog.txt","w");fwrite($datei, $count);fclose($datei);
?>
But it counts mostly 3 or 4 times for 1 visit, I read somewhere broken images are the causes(Can't fix it, im new to this).
So how do I make a simple counter that counts the visitors of your website?
Not with a visual element, but just so it stores visits in countlog.txt