Wow... neat.
That does exactly what I suggested a few emails ago! I feel smart now! =)
Thanks for the validation, I really needed it today.
Nik
-----Original Message-----
From: Alex Fredrich [mailto:fredrich@m...]
Sent: Thursday, November 15, 2001 3:52 PM
To: professional php
Subject: [pro_php] RE: Total visitor of a page
This is an aproach for counting online users using timeout...
> A new class was added to "PHP Classes" repository.
>
> Name: Users Online
>
> Author: Daniel Kushner <dmail@m...>
>
> Description:
> Reports the number of users that are currently online.
>
> URL: http://phpclasses.upperdesign.com/browse.html/package/382
Alex Fredrich
fredrich@m...
Thursday, November 15, 2001, 9:39:22 PM, you wrote:
DC> I have little experience with php, but a lot with ASP, so this may be a
DC> little off track.
DC> You *cannot*, without running something client side, return this kind of
DC> information. You only know that people are still using your site when
they
DC> request a page. Hence any information like this that you want to get is
not
DC> current. ie you can say that someone accessed the page 30 seconds ago
but
DC> you can't say that they are viewing it right now.
DC> You could create a 1pix by 1pix frame to refresh every 5 seconds. This
would
DC> tell you what they were doing 5 seconds ago, but not *now*. But again I
DC> imagine that you would be adding a serious performance hit to your
pages.
DC> The web is, by nature, disconnected.
DC> regards
DC> David Cameron
DC> nOw.b2b
DC> dcameron@i...
DC> -----Original Message-----
DC> From: Bob Page [mailto:bpage@w...]
DC> Sent: Friday, 16 November 2001 12:37 AM
DC> To: professional php
DC> Subject: [pro_php] RE: Total visitor of a page
>> Is there anything like global.asa in asp to do this kind of work?
>>
DC> Yes. Sessioning: http://www.php.net/manual/en/ref.session.php
DC> But this doesn't really tell you how long a user visits a page (and
DC> neither does global.asa) unless you do some client side thing, which I
DC> would not recommend as others mentioned before. Of course you may
DC> consider the timeout of a session along with page call times good
DC> enough.
DC> Here is a good explanation of what your expectations should be re: a web
DC> page and its visitors:
DC> http://www.analog.cx/docs/webworks.html
DC> Sessions:
DC> http://www.phpbuilder.com/columns/mattias20000105.php3
DC> HTH,
DC> B.Page