Download the PHP below
In this tutorial we create a hit counter for our website, this hit counter can be used too ad total from your website or for individual page views, allowing you to track the popularity of particular pages within your website.
This hit counter will be a flat base PHP script, there will be no need for any Mysql databases. You have the option to follow along to the tutorial or you can download the file from the link above.
The PHP code should be placed into the body of your html, into the location where you want the hit counter to appear. It’s also important you have a [hitcounter.txt] file located in each folder that has PHP files using the PHP script.
See Part 1