By continuing your navigation on this site, you accept the use of cookies to offer you contents and adapted services. Legal Notice.

GuppY Help Center, help online, documentation and tutorials


You are here :   Welcome » Add a visitor counter
Preview  Print...  Print this page...
Preview  Print...  Print this section...



FAQ GuppY v 5.02.xx

Here you will find FAQs on Guppy version 5.02.xx.


FAQ system

These FAQs address issues related to hosting and the system in general.


In this box you will find documentation and tutorials


Online help


Here you will find important information regarding regulations and copyright


Add a visitor counter

rss This article is available in the standard RSS format for publication on your website :

To add a visitor counter (number of time different visitors viewed the page), you need 2 files, one for the counter data, and the other to manage the visitors. You also need to add a few lines of php code to the sample.php file toincrement the counter.

> Find the following line :

>Below this line add the following :
$­­­­­­­cpt = ReadCounter("compteur.dtb");
$­­­­­­­new = DejaVote("ipcompteur.dtb");
if ($­­­­­­­new[0] == false) ­{­ WriteCounter("compteur.dtb", ++$­­­­­­­cpt); }

Replace the name of the file "compteur.dtb" by the name of your data file.

Replace the name of the file "ipcompteur.dtb" by the name of your unique visitor history file.

Use the $­­­cpt variable to display the counter value (for example: echo $­­­cpt; )

Creation date : 26/10/2006 @ 16:04
Category : - Sample PHP
Page read 38567 times

You are here :   Welcome » Add a visitor counter


 3361652 visitors

 4 visitors online


On each page in admin, if you click on this icon, you get the online help page.

Site registered in the CNIL under agrément 1040387.
You have a right of access, modification, rectification and deletion
of the data according to the Computer law and Freedom (article 34) of January 6th, 1978.