Warning: include(../plugins/glossaire/conf_defaut2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29
Warning: include(): Failed opening '../plugins/glossaire/conf_defaut2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29
Warning: Undefined variable $res_group in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33
Warning: Trying to access array offset on value of type null in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33
Warning: include(../plugins/glossaire/gloss_inc1.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36
Warning: include(): Failed opening '../plugins/glossaire/gloss_inc1.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36
Warning: include(../plugins/glossaire/gloss_mob_inc2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
Warning: include(): Failed opening '../plugins/glossaire/gloss_mob_inc2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
Add a visitor counter
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 :
include(CHEMIN."inc/includes.inc");
>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
Last update : 26/10/2006 @ 16:04
Category : Sample PHP
Page read 41339 times
Document generated in 0.01 second