I wrote a simple one in PHP. It uses a PHP file and a text file, both in a directory called "counter":
PHP Code:
$file = fopen("counter.txt", "r");
$num = fgets($file,4096);
$num += 1;
fclose($file);
$file2 = fopen("counter.txt", "w");
fputs($file2, $num);
fclose($file2);
$visits = "<i>$num</i> visits.<br />";
That would be counter.php.
For counter.txt, just make it and put an html comment in there or something. Make sure it's CHMOD to 777.
Then, to show it on a page:
PHP Code:
include('counter/counter.php');
Bookmarks