Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Jan 2004, 23:10
SiXXGuNNZ's Avatar
SiXXGuNNZ SiXXGuNNZ is offline
 
Join Date: Oct 2001
Real name: Jeff
Question how many ppl are viewing a file?

let's say I have a php file named chat.php, is their a way I can do a who's online type thing, that shows which users are currently viewing that php file?
Reply With Quote
  #2  
Old 10 Jan 2004, 23:52
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats the basic PHP to count all the active sessions that have chat.php in the location, the total will be stored in $number['views']
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #3  
Old 10 Jan 2004, 23:57
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I think he wanted to list the viewers names instead of a count.
Reply With Quote
  #4  
Old 11 Jan 2004, 00:00
SiXXGuNNZ's Avatar
SiXXGuNNZ SiXXGuNNZ is offline
 
Join Date: Oct 2001
Real name: Jeff
yeah names, and put it in the what's going on box(I can figure that much out) it is definatley a start(getting the total number of ppl) but it would be cool to be able to list the users viewing the chat.php
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 04:06.

Layout Options | Width: Wide Color: