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 can't seem to crack it then I have added the full script at the end just incase.
Final Part of the tutorial that helps your to build your own hit counter with some basic features. Consists of data for last 24 hours, No of users online for the past 5 minutes. It's simple & effecitve
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.
Part 1 of 2 Tutorial to create a hit counter using php/mysql. Some of the feature discussed in thi tutorial will be show no, of online, unique visitor , visit log & etc. A good & practical tutorial for begineers.
In this tutorial you will be tought how you can fairly easy create a unique visitors counter for your website. This way you will know exactly how many different people have visited your website.
This shows how to create a slightly more attractive counter using counter art available . More interesting than a plain text counter but no more difficult to implement.