PDA

View Full Version : where do i find couters to install on my web



shakyshang
October 12th, 2004, 07:09
where do i find counters to install on my web or what files i must install?

Matt8
October 12th, 2004, 19:06
Depending on what features are installed on whatever control panel you are using, it might be available there. if not, try a cheap free one, like www.bravenet.com

shakyshang
October 12th, 2004, 20:25
where do i find counters to install on my web or what files i must install?
NONONONO i dont want them to host my counter i want to setup my own on my site

Wojtek
October 12th, 2004, 20:56
Power Phlogger

http://pphlogger.phpee.com/

Requirements
PHP3 or PHP4: You should not run PowerPhlogger with PHP3 < 3.0.9. We recommend to use PHP4.
PHP also needs to be compiled with MySQL support;
PHP has to be compiled with PCRE-support, --with-pcre-regex[=DIR] (enabled by default since PHP 4.2.0)
MySQL (tested with 3.22.25 and 3.23.x);
GD-lib with FreeType support enabled and FreeType linkage with TTF library



I'm using this one to track multiple websites and I just love it!
Highly recommended by me :)

It's a little more advanced then a counter. Got plenty and plenty of stats on your traffic.


If however you just want a counter:



<?php
$file="counter.txt";
$handle=fopen($file, "r+");
$hits=fread($handle,filesize("$file"));
$hits+=1;
fclose($handle);
echo "$hits";
$handle=fopen($file, "w");
fwrite($handle, $hits);
fclose($handle);
?>


make a file counter.txt and use this code to do +1 on that file
very basic