RE: [PHP] Number of users

2005-07-12 Thread yanghshiqi
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Number of users

2005-07-12 Thread Ahmed Saad
On 7/12/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 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?

Don't assume that every IP maps to only ONE user. IPs are often
masqueraded so many many users can share a single IP. Session IDs are
the key to what you want.

-ahmed

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php