The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Have you used the Exact code Freeola provided??? 'cus I cut a load out as some it it was a bit pointless.
#$hitsfile = "/freeola/users/0/0/sr0000000/Files/Hits.dat";
$hitsfile = "Hidden_Files/Hits.dat";
if(file_exists($hitsfile) == TRUE) {
$hits = file($hitsfile);
$hits = $hits[0] + 1;
} else {
$hits = 1;
}
$fp = fopen($hitsfile, "w");
$hits = trim($hits);
fwrite($fp, $hits);
if ($counterstyle == "text") {
print "$hits";
} else {
$digit = strval($hits);
for ($i = 0; $i < strlen($hits); $i++) {
print "";
}
}
?>
------------------------------------- ------------------------------------------
That is the code I've got. I have zero'd out my User ID for obvious reasons.
> Have you used the Exact code Freeola provided??? 'cus I cut a load out
> as some it it was a bit pointless.
I didn't use the Freeola code at all. I coded it all myself, and it's ben working for the last 4500 hits. Hit counters on 2 different sites, using 2 different pieces of codee both reset to zero on 29th May. Fortunately I also track user stats, so I can simply count the number of hits from the user logs to rebuild the counter file - its just annoying, thats all...
Maybe just one of the Servers (the one your sites are on) just went a little wrong for a second. Have you got it coded so if it can't fine the hits file that it is to create a new one??? Might be that just that once the Server was playing up, didn't fine the file and created a new, blank one.
> Is it on the Same File, the stats and hits???
nope, the hits file is called counter.txt, and the stats file is called stats.txt
I also have other count files to count hits on other pages, but these didnt get reset! now im really confused....
(btw, i know i could combine all these files into a single string-separated file, but i didnt know how to when i created the site, and I can't be arsed now...)