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 page view 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



Here you will find important information regarding regulations and copyright


Add a page view counter

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

To add a visit counter (to count the number of times the page was displayed), you need to have a file to store the count data and modify a few lines in the sample.php file, in which you will increment the counter.

Find the following lines:
define('CHEMIN', '../');

After this lines add the following:
$­­file = CHEMIN.'data/my_counter.dtb';
$­­­­­­­­­count = ReadCounter($­­file) + 1;
WriteCounter($­­file, $­­­­­­­­­count);

Replace the file name "my_counter.dtb" by the name of your data file. (that you created to store this information)

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

Creation date : 26/10/2006 @ 15:57
Category : - Sample PHP
Page read 14532 times

You are here :   Welcome » Add a page view counter


 3325247 visitors

 2 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.