|
Adding a basic PHP Text Counter to your website
|
Other links at PHP > Tutorials > Counters |
| 1. |
referer logger
|
|
|
This tutorial will teach you how to make a flat file script that records where all your hits are from. It is very useful to know which site you are likely to get more hits from in futur.
|
| 2. |
Building a PHP Counter
|
|
|
This tutorial will help you build and understand how a counter that only counts unique visitors works.
|
| 3. |
Simple Flat File Counter
|
|
|
New to PHP? This tutorial teaches you how to make a PHP Counter, without using MySQL, so if you do not have access to MySQL then you can still do it. In the tutorial you will learn the basics of file handling and sessions, which are vital operations in most PHP scripts. If you cant seem to crack it then I have added the full script at the end just incase.
|
| 4. |
Unique hits counter
|
|
|
This tutorial teaches you the basics of creating a Unique hits counter, in a easy-to-learn step-by-step process. This is ideal for php beginners/learners. Its easy layout helps you understand php/mysql more efficiently.
|
| 5. |
phpNets Text counter
|
|
|
Counters are used in many websites so that the webmaster will be able to see how many people come to their website. They are used throughout the web on numerous websites, sometimes all too common. I recommend not using a counter unless you have a decent website that will attract a lot of visitors, but you may do so anyways if you so desire. Enough small talk, time for the actual tutorial. In this tutorial you will need to create two files. The first one is a text file called "counter.txt" that will be used to keep track of the number of visitors. The second file is a php file called "visit.php" that will be used to add to the number of visitors. So create those two files on your website both in the main directory. Open up the "counter.txt" file in notepad or any other text editor that you prefer to use and type in the number zero and save the file.
|
|
|