Why not;
1. Record each visitors IP that connects and the connect time.
2. Delete from this table all records that are 5 mins old.
3. Count the remaining records as people currently viewing page.
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Sunday, June 23, 2002, at 09:53 AM, Pag wrote:
> Is it possible to code in PHP a small indicator on a site saying
> how many people are viewing that page at the moment?
> Sorry if its a silly question, but i am a newbie at PHP. If it is,
> could you point me in the good directi
Hi,
I've ma some atuh system to do such thing beside other
special functions, u have to store some session ids in some
db and then refresh timestamp for those session wich is still
active other delete after 30min or some other time.
--
bye,
Urosmailto:[EMAIL PROTECT
Most questions like this depend more on your ability to think creatively
than your experience with PHP, so don't let inexperience discourage you
from exploring on your own.
First, decide what you consider to be "online" exactly. If I, for
example, requested a page 30 seconds ago, you would pro
Well, traditionally this would be done with sessions, and it's not exactly
the easiest topic for a newbie to get their head around.
It also never going to be a science -- how do you know when a user closes
their browser window or click onto another page? You need to have clean-out
routines for "
Is it possible to code in PHP a small indicator on a site saying how many
people are viewing that page at the moment?
Sorry if its a silly question, but i am a newbie at PHP. If it is, could
you point me in the good direction? i mean, some function or something.
Thanks.
6 matches
Mail list logo