?
Solved

How many Users connected ?

Posted on 2010-09-24
4
Medium Priority
?
326 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 800 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

777 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