ill tell you the logic/alogrithm of what you can do.
when u come back again check if the cookie exists or not. if it does then your visit will not be recorded as youhave already visited that day. if the cookie does not exist then your visit will be logged as it will be your first visit that day.
no actually I can't create a counter that will count every user...my counter count on every reload...thats why...
When talking about website statistics, usually a "hit" refers to the access of any resource on the server such as html files, images, audio, video etc.
that will count every user's click...plzz give with database & code...
Do you want to count unique visitors, or the clicks of each visitor, or both?
If you're counting clicks, then you most likely want the number of hits on php or html files. They are the same as clicks.
If you want unique visitors, then you need cookies like mentioned by mustafaneguib. There are already existing solutions:
Or services that provide visitor analysis such as google analytics.
A lot of this information is already available in the server logs, if you have a access logs enabled.
There are many existing parsers for server logs that display the log data visually.
Usually, these are already existing on PHP enabled servers and is already built into CPanel .
Website statistics generated from log analysis do not contain visitor counts, or visit counts. This is because a visitor can only be identified well by a cookie (or other client side storage). IPs cannot be used since some users have dynamic IPs and some groups of users can use a single IP.