Solved

How many Users connected ?

Posted on 2010-09-24
4
312 Views
Last Modified: 2012-05-10
Hi Experts !

Do you know a PHP function/ class to point out how many users are connected at the site ?

Thanks in advance.
0
Comment
Question by:Eduardo Fuerte
  • 2
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
ID: 33754279
in short: it's not really possible to know, because web pages are stateless. you cannot really know when a user stops looking at the page, closes the browser, turns off the pc etc ...you might check this out, though:http://snipplr.com/view/24198/how-many-users-are-connected-to-a-site/
0
 
LVL 6

Assisted Solution

by:neorush
neorush earned 50 total points
ID: 33756173
angelIII has it correct that it is difficult to get an exact number, and a better description of the number is actually that "X people have loaded a page from the site in the last Y seconds." angelIII's example uses a file to track this, but it can be done with a database, using php's session storage files, or even apache's log files.
0
 

Author Comment

by:Eduardo Fuerte
ID: 33756393
Hello

Here where I'm now I have very restricted access to internet - fortunatelly Experts Exchange is free,
So I couldn't see yet angellll solution. If possible coud you give me the PHP code to obtain it, even it is an merely aproximate number of users connected ?

Thanks in advance.


0
 

Author Closing Comment

by:Eduardo Fuerte
ID: 33764586
Explained what I need. Thanks !
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question