|
Posted by "yanghshiqi" on 07/12/05 20:46
The current users' num is actually not exactly and it's just an estimated
one.
You can save your users' data in an array, and every time receive a request
from a browser you should modify your array and then you can get how many
users are "online". And also there need another function to clean up the
expired users.
Best regards,
Shiqi Yang
-----Original Message-----
From: YaronKh@clalit.org.il [mailto:YaronKh@clalit.org.il]
Sent: Tuesday, July 12, 2005 4:26 PM
To: php-general@lists.php.net
Subject: [PHP] Number of users
Hello all,
I have some questions and I hope someone could answer them
1. Is there a way to find out how many users currently browsing pages
at my web site?
2. If I write down the IP of a user that log on my web site, can I
check later if the IP still browsing pages at my web site or if he had left
my website?
Thanks
yaron
Navigation:
[Reply to this message]
|