Mobile app version of vmapp.org
Login or Join
Cofer257

: Have you tried Google Analytics? It's free and very reliable. If you have a HUGE amount of traffic you may have problems, but I doubt you are anywhere near that level yet. EDIT: okay I

@Cofer257

Have you tried Google Analytics? It's free and very reliable. If you have a HUGE amount of traffic you may have problems, but I doubt you are anywhere near that level yet.

EDIT: okay I guess I misunderstood your question. I don't know exactly what your script was doing, but it should be pretty easy to display the number of visitors online. On every page request, log the IP address and date in a database table. Then to display who's online, select all unique IP addresses that visited in the last 15 minutes or so (or up to 30 minutes if you like).

That should be pretty lightweight, but if what you have is failing at peak times, then perhaps you could optimize it. Try asking over on Stack Overflow for help.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer257

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme