GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Apr-2007, 09:41
Kacyndra's Avatar
Kacyndra Kacyndra is offline
Member
 
Join Date: May 2005
Location: Maryland
Posts: 230
Kacyndra will become famous soon enough

Count Visitors


hi
i have been looking everywhere, trying ot find a script that would let me count (in real time) how many people are currently browsing a specific page.

for example. on index.php - i want to say "xx people are currently viewing otherpage.php"

is it possible? has anyone ran across it?
help please


THanks!
__________________
Xrum!
  #2  
Old 09-Apr-2007, 09:49
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 858
admin will become famous soon enough

Re: Count Visitors


You need to store the URL fetched, timestamp and IP Address of the user, for every pageview.

If you use a DB table then it would be as simple as COUNT() the rows for URL:otherpage.php where timestamp > timestamp_15_minutes_ago... or something like that!

Maybe this page: http://www.desilva.biz/arrays/filter.html will offer some more insight.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 09-Apr-2007, 09:55
Kacyndra's Avatar
Kacyndra Kacyndra is offline
Member
 
Join Date: May 2005
Location: Maryland
Posts: 230
Kacyndra will become famous soon enough

Re: Count Visitors


hm. ok. im VERY new to PHP
so far, as far as i went, was modify an alrady existing code. never actually wrote anything myself... but thats for the tutorial. i'll check it out
how hard can it be...
__________________
Xrum!
  #4  
Old 09-Apr-2007, 13:22
lwbbs lwbbs is offline
New Member
 
Join Date: Apr 2007
Location: www.easywebx.com
Posts: 28
lwbbs has a little shameless behaviour in the past

Re: Count Visitors


You can try www.phpmyvisites.net
It is free and open source.

Quote:
Originally Posted by Kacyndra
hi
i have been looking everywhere, trying ot find a script that would let me count (in real time) how many people are currently browsing a specific page.

for example. on index.php - i want to say "xx people are currently viewing otherpage.php"

is it possible? has anyone ran across it?
help please


THanks!
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 07:44
HELP!! New to C! diveboy866 C Programming Language 4 23-Mar-2006 08:41
linked list error message Krandygrl00 C++ Forum 4 22-Jun-2005 14:13
Need help reading data from files blitzy C Programming Language 5 15-Mar-2005 19:07

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:27.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.