About simultaneous users...

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

mnicolas80
New php-forum User
New php-forum User
Posts: 3
Joined: Fri Nov 29, 2002 8:44 am

About simultaneous users...

Postby mnicolas80 » Mon Dec 02, 2002 6:15 am

Is there any way to count how many simultaneous users are visiting my site?

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Wed Dec 04, 2002 12:25 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.


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot], Strider64 and 2 guests