Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases > Coding Snippets
You last visited: Today at 17:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP] Visitor Counter

Discussion on [PHP] Visitor Counter within the Coding Snippets forum part of the Coding Releases category.

Reply
 
Old   #1



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
[PHP] Visitor Counter

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
Shawak is offline  
Old 12/02/2013, 19:07   #2
 
elite*gold: 0
Join Date: Jan 2012
Posts: 759
Received Thanks: 416
Why do you put a single static function in a class?
dowhile is offline  
Thanks
1 User
Old 12/02/2013, 19:18   #3



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
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.
Shawak is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Q] Wenn ein Counter so viel erreicht hat, dann Counter wieder resetten
12/09/2010 - AutoIt - 10 Replies
Hallo. Ich möchte gerne einen Script schreiben, der einen Counter resettet nachdem der einen bestimmten wert erreicht hat. $zaehler = 0 While $zaehler < 5 MouseClick ("left", 683, 439) $zaehler = $zaehler +1 Sleep (2000)



All times are GMT +1. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.