Re: [PHP] live Counter

2002-03-05 Thread Erik Price


On Monday, March 4, 2002, at 07:59  PM, olev rumm wrote:

> Hello
> How can I monitor how many visitors are currently on line, with out
> refreshing the frame - like a live monitor.
> Olev


I've seen questions like this quite a bit on this list.  If you really 
think about it, nobody's "logged in" to your site.  :)  Your site is 
throwing out page requests, that's all.  There's no "place" for them to 
log in.  If you're referring to "who is currently in the middle of a 
session on my site", then you'll have to come up with a workaround.  
Some ideas have included testing to see who has submitted a page request 
with a session ID within the past few minutes, or things like that.  But 
you'll never be able to make sure someone is "logged in" or not because 
your server needs to wait for the user to send some information for it 
to know what it's doing.

Think of HTTP as more like the postal service than a telephone 
service -- you just send data back and forth, rather than have a true 
interactive (stateful) session.  Only with a custom web client like a 
Perl/Python/Java program could you do otherwise, unless you can come up 
with a really clever JavaScript code chunk that sends a message to the 
server when the user closes a browser window or quits or whatever.  Even 
that would not be very reliable.

Erik




Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


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




Re: [PHP] live Counter

2002-03-04 Thread Greg Donald

On Mon, 4 Mar 2002, olev rumm wrote:

>Hello
>How can I monitor how many visitors are currently on line, with out
>refreshing the frame - like a live monitor.
>Olev

PHP is a server side scripting language, once it leaves the server it is
static text, usually html and other stuff. To have something dynamic like
you described, you would need to incorporate something with dynamic client
side capabilities, something like javascript, or java.

-- 
---
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
---



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




[PHP] live Counter

2002-03-04 Thread olev rumm

Hello
How can I monitor how many visitors are currently on line, with out
refreshing the frame - like a live monitor.
Olev



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