Hi! I was wondering if anyone can suggest me a good *WORKING* users online script. Its simple, I just need to include it into my main page, and I want it to show how many users are viewing this page at the moment, thats all. It needs to be very dynamic, so when the person leaves, the numbers change. because I got a really slow one from phponline.biz
Can anyone suggest me a good, simple script?
Script Wanted
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Re: Script Wanted
They dont' exist. They are really easy to do though.Yegor wrote:Hi! I was wondering if anyone can suggest me a good *WORKING* users online script. Its simple, I just need to include it into my main page, and I want it to show how many users are viewing this page at the moment, thats all. It needs to be very dynamic, so when the person leaves, the numbers change. because I got a really slow one from phponline.biz
Can anyone suggest me a good, simple script?
Simply create a session for each person that goes on the site, and store that session in a database. Then, as the person goes through the site, you update the database with a last_impression. To display the number of users on the site, simply count the total number of sessions in the table that have a last_impression time of less than x number of minutes.
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact: