WebsiteX5.info - The ultimate guide for Incomedia's WebsiteX5

Search this site

Go to content

Main menu:


Counter on your homepage

How to...

How to put a guest counter on your homepage without the need of having a payed account or all kinds of ugly advertisements?

I've selected PHPGcount created by Klemen Stirn as a counter for my site. PHPGcount is a PHP graphical hit counter. It uses flat-text database so no SQL databases are necessary. It comes with many styles to choose from and you can add your own styles easily! It can count hits for multiple pages of your website or even websites on other servers. With the help of cookies it can count unique visits only.

The count is displayed on the page using a simple piece of Javascript code.

The main advantages:

  • Easy to set up
  • Many styles to choose from (I've showed a few examples on the right, but more come with the package!)
  • You can have more than one counter, for example a separate counter for one of your pages or for a section of your site
  • The possibility to create your own styles
  • No advertisements
  • No fees
  • All on your own web server!


You can download the code from phpjunkyard

The setup guide in the 'readme.htm' which is included in the zipfile is very good and easy to follow, so I won't try to improve upon it.

To use the counter in WebsiteX5 just add a HTML Code block on your page. Edit it and paste the Javascript code in the Block.

For example:

  • When your domain is http://www.yourdomain.com
  • and you have installed gcount in the gcount folder under you home folder
  • and if you want to use the style 'bbldotg'
  • and if the file you want your counting to be in is 'visitors.txt' (don't forget to make it writeable).

Then the script to put in the HTML Code block would be:

<script language="Javascript"
src="http://www.yourdomain.com/gcount/graphcount.php?style=bbldotg&page=visitors">
</script>

(keep it in one line, don't wrap!)


led

57checvy

bbldotg

7seg

belltm

blgrv

cntdwn

ds9

fdb

links

marsil

sbgs

computer

web1

Back to content | Back to main menu