Users online

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Ximian
Forum Newbie
Posts: 2
Joined: Tue Nov 19, 2002 8:52 pm

Users online

Post by Ximian »

http://www.evilwalrus.com/users_online.php

I am looking for the code to something like that. I know there is http://www.evilwalrus.com/viewcode/484.php I already have that installed, but I am looking for something more like the first. If anyone has that code, or something very similar, I would be very thankful if I got ahold of it.
Intrigue
Forum Newbie
Posts: 2
Joined: Tue Nov 19, 2002 9:32 pm
Location: Ohio
Contact:

users online

Post by Intrigue »

Something like that would be extremely easy to use, simply create a database table, with fields like ID, ip, hostname, agent, page, and timestamp and insert the appropriate values in each when the page loads (put it in an include to be used on every page), do garbage collection in the include as well eg: DELETE FROM users_online WHERE timestamp < time()-3600 and include it on the top of every page, i've done it before, and it is really simple :D
Ximian
Forum Newbie
Posts: 2
Joined: Tue Nov 19, 2002 8:52 pm

Post by Ximian »

I know very little PHP, so I guess I'll start working on a script soon. I have a 5 day break from school next week, so I guess I'll do something productive with that time.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Ximian wrote:I know very little PHP, so I guess I'll start working on a script soon. I have a 5 day break from school next week, so I guess I'll do something productive with that time.
I have a week off, as well. ;)
Image Image
Post Reply