Solved

How many Users connected ?

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

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Explained what I need. Thanks !
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How can i post a php foreach loop in my database. 13 60
echo button 13 45
windows 10 bash shell 4 32
Help cleaning out CSS 2 22
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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 look for a specific file type in a local or remote server directory using PHP.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now