If you use http://php.net/session_start, I guess you could declare
that your session timeout *IS* the definition of current users...
But, really, even at 5 minutes, you may be counting a lot of people
who have LEFT your site.
There is no "real" number for this.
Do whatever you want.
On Mon, Feb
ce for it!!
>
> peace..
>
>
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 05, 2007 5:31 AM
> To: benifactor
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] who is online?
>
>
> benifactor wrote:
>> sorry if you mi
t: Re: [PHP] who is online?
benifactor wrote:
sorry if you misunderstood, i just wanted to know if it could be done
with php alone.
It can't, and this should be fairly obvious. If the client-side makes no
contact with the server for a period of time, how do you expect it to
know that the u
ROTECTED]>
> Cc:
> Sent: Monday, February 05, 2007 5:18 AM
> Subject: Re: [PHP] who is online?
>
>
>> benifactor wrote:
>>> i have built a function to tell me how many users are on my site at
>>> any given time... >>
>>> //define function
&
hmm it was obvious to me, tis why i asked. just had to be sure. thank you
for your help.
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: "benifactor" <[EMAIL PROTECTED]>
Cc:
Sent: Monday, February 05, 2007 5:30 AM
Subject: Re: [PHP] who is on
:
Sent: Monday, February 05, 2007 5:18 AM
Subject: Re: [PHP] who is online?
benifactor wrote:
i have built a function to tell me how many users are on my site at
any given time... mins $whoTime = time(); $whoTime = $whoTime - 300;
mysql_query("Delete FROM bc_who where expire < $whoTi
sorry if you misunderstood, i just wanted to know if it could be done with
php alone.
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: "benifactor" <[EMAIL PROTECTED]>
Cc:
Sent: Monday, February 05, 2007 5:18 AM
Subject: Re: [PHP] who is onli
benifactor wrote:
i have built a function to tell me how many users are on my site at
any given time... mins $whoTime = time(); $whoTime = $whoTime - 300;
mysql_query("Delete FROM bc_who where expire < $whoTime") or
die(mysql_error());
//here we difine the variables needed to preform the check
i have built a function to tell me how many users are on my site at any given
time...
this fuction works fine, however, i want to know if what i am about to ask is
possible.
the problem i have is, this function assumes that after five minutes if the
user has not refreshed the page, or gone on
Look at phpnuke, or any other website management project
Research and Development wrote:
> Hello. Has anyone noticed that some sites can display a list of users
> currently looking at their site? I would like to see the code to do
> such things.
>
> Thanks in advance.
>
>
--
PHP General Mai
Hello. Has anyone noticed that some sites can display a list of users
currently looking at their site? I would like to see the code to do
such things.
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
11 matches
Mail list logo