LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2005, 04:19 PM   #1
bizshop
LQ Newbie
 
Registered: Dec 2004
Posts: 14
Blog Entries: 1

Rep: Reputation: 0
Visitors currently online


I want to be able to determine the number of visitors to the entire server at a given moment. Not the users set up in the system, but people browsing, putting things in shopping carts, etc.

Is there a command or PHP script that might do this? I want to be able to determine what is going on traffic-wise before I trip the server off for maintenance, Apache restart, etc.
 
Old 12-29-2005, 11:48 AM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Just my thoughts:
You need some sort of server side session manager/handler. PHP does have this with PHP SESSIONS (look in PHP documentation). Perhaps you can count how many active sessions you have open at any given time and that could tell you how many active users you have.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 02:12 PM
How many visitors on server with 1024/256 kbit/s klemen Slackware 1 06-19-2005 11:36 AM
Visitors to my small office+Inventory sanw2k Programming 1 04-03-2005 04:06 PM
marketplace system for visitors wiggywag Programming 1 09-09-2004 03:36 PM
Online Banking / Online Shopping in Linux? JROCK1980 Linux - General 14 02-27-2004 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration