i was wondering how you could make a counter that shows how many people are currently on the site.
how to show how many people brousing my site now with page name and how to show recentaly updated pages?
you can see it here Click Here www.indianrajputs.com
please please please tell me.

Recommended Answers

All 4 Replies

1- in database set a field int when user visit count (online++)
2- with javascript make a function every 10 minutes check how many (online) (functio with php or else)
3- remember you can make a page or many pages just include jquery to what page you need
4- when user close a page use (body.unload) to make(online--)
(game is fun) good luck

Member Avatar for iamthwee

$_SERVER["REMOTE_ADDR"]

Use that to find the unique ips

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.