Solved

How many Users connected ?

Posted on 2010-09-24
4
322 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 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

705 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