How to Creating A Page Counter In PHP
OK, everybody has a hit counter on their page. But how many people actually make their own? Ya well, I am going to show you how to create a simple page counter in PHP.
This page counter writes to a file that you have created, storing how many hits you have received. The script then reads the text file (counter.txt) and displays it on the page. Let’s take a look at this code in action.

