Counting Visitor

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chann_soung
Forum Newbie
Posts: 1
Joined: Thu Mar 17, 2011 9:20 pm

Counting Visitor

Post by chann_soung »

I am having a problem in my current project now. I want to write script to count visitor to a website and group into:
- Today
- Yesterday
- This Week
- Last week.
I way I want to count is to count each visitor by starting to browser and stop browsing the page.
So is there any solution that can be done to accomplish this? Thank in advance.
gully_mi_seh
Forum Newbie
Posts: 14
Joined: Fri Mar 18, 2011 8:48 pm

Re: Counting Visitor

Post by gully_mi_seh »

do you want to use a database or just a external file?
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: Counting Visitor

Post by akuji36 »

Hello

Take a look at the following link:

http://ubuntuforums.org/showthread.php?t=791585

and a look at the php time function which can reflect current , past, and future dates:

http://www.youtube.com/watch?v=X8OQMwhdI5M
Post Reply