Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
Is there any way to count how many simultaneous users are visiting my site?
- New php-forum User
- Posts: 3
- Joined: Fri Nov 29, 2002 8:44 am
Yes thera are some ways...
you can set coockie to every user of your site...
after that you can get data of the last visiting of your pages...
and put this data into some Mysql table with time of last visit...
after that you can select data from table by last_time_visit and condition of this query must be time (current time minus five minutes)...
at result you will get numbers of users at your site.
- Last Samuray
- Posts: 831
- Joined: Sun Jun 02, 2002 3:09 am
Return to PHP coding => General
Who is online
Users browsing this forum: Google [Bot] and 3 guests