[PHP] Visitor Counter

12/02/2013 18:53 Shawak#1
counter.php (also be sure to create a folder called "cache")
Usage:
Code:
<?php
	include("counter.php");

	$counter = Counter::Get();

	echo '
		Seitenaufrufe: '.$counter["all"].' Heute: '.$counter["day"].'
	';
?>
Lg
12/02/2013 19:07 dowhile#2
Why do you put a single static function in a class?
12/02/2013 19:18 Shawak#3
Because Counter::Get() looks more clean for me then CounterGet or something similar.

But if you like to, you can remove the class by yourself.