View Full Version : site METER

05-27-2004, 06:42 AM
Hi, Can someone help me with a personal site meter? I know i can get a free one offline but i dont want all the ad's. Can someone make me a file for it? Thank you for any help.

05-27-2004, 04:07 PM
What do you mean by site meter?

05-27-2004, 04:16 PM
Do you mean a counter?

if so:

$file = fopen("count.dat", "a"); // you need to create this file...
fputs($file, "HIT \n");
$hits = count(file("count.dat")) // Find out how many hits
echo ("You are visitor number $hits!");

If by meter you mean counter than that is about the simplest counter you will ever find... I have one on my site that doesn't count my hits and it tells me how many hits since my last visit...But the one above should do just find it you like um simple :cool: