1
wizanda
Does anybody know of a simple counter that works?
  • 2004/10/7 17:11

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Does anyone know of a simple counter that works i have tried some of them and non seem to work

So i went searching around for counter scripts would this be able to work in some way

Quote:

// My Hits 2
// http://www.laviska.com

$file = "my_hits.txt";
$user_ip = $_SERVER['REMOTE_ADDR'] . "\n";
$ip_list = file($file);
$visitors = count($ip_list) - 1;

if (in_array($user_ip, $ip_list))
{
echo ("$visitors");
} else {

$fp = fopen($file,"a");
fwrite($fp, "\n$user_ip");
fclose($fp);

$visitors++;
echo $visitors;
}

?>


The text file is blank barr "do not delete this line"

Could this be used or is there some other counter out there i have missed

I know about the bfstats yet u have to register a privacy policy and i got confused with the application form more then once

so i have given up on that one as all i need is an internal counter

Any help would be apreciated as i just got a reply from a webring saying i dont have enough vistors

yet i am starting to get well over 1000+ per month that dont post as they dont think anyone uses the site

plz help

2
Anni5166
Re: Does anybody know of a simple counter that works?
  • 2004/10/19 2:52

  • Anni5166

  • Just popping in

  • Posts: 39

  • Since: 2004/9/30


I use site meter which is free. They supply the html code you need to run it. All I did was install it in a custom block and it seems to work fine. And their stats are pretty good too.

Login

Who's Online

314 user(s) are online (228 user(s) are browsing Support Forums)


Members: 0


Guests: 314


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits