PDA

View Full Version : counters.



Matty
12-06-2005, 08:05 PM
I need a site that does good hits like: Your site has had 134 hits in the last 7 days.

With no ad's or anything.

Anywhere? And does cpanel have it? O.o

Steven.
12-06-2005, 08:10 PM
hmmm cpanel does counters but not ones like that.. it' Cgi-bin or something and counters last time i looked anyways..

Mentor
12-06-2005, 08:11 PM
statcounter.com does a good adles one with stats.
Athogh you may as well just malke a simple flat file one with php "/

Steven.
12-06-2005, 08:21 PM
proberly faster. :p useing flat file :p

Edit: - Ths is from my guide urm a while back from mentor's reply.

"anyway a hit counter would look more like this

PHP Code:

<?php
$document = ("hitpage.txt");
$hits = file($document);
$hits[0] ++;
$fp = fopen($document , "w");
fputs($fp , "$hits[0]");
fclose($fp);
echo $hits[0];
?>



then hitpage or what evr u want to go there. woudl need to be chmoded to 777.
a "working" flat file counter.

(this is the perfect opitunity for me to have made a mistake in my codeing)"

Thanks ;)

iRoss
12-06-2005, 08:25 PM
www.fastusersonline.com Just take out the hyperlink :D

I use PHP myself because it easier and faster. I much prefer it. :)

Oooo Just saw that steve posted the code ;)

Want to hide these adverts? Register an account for free!