Max Castril Posted June 21, 2017 Share Posted June 21, 2017 Hi all, Some forum type websites show how many people are viewing at any one time - can you do that in php or do you have to use JavaScript? HOW??? Any advice would be gratefully accepted. Max Link to comment Share on other sites More sharing options...
justsomeguy Posted June 21, 2017 Share Posted June 21, 2017 In the database, you store the timestamp of their last activity, so any time they load a page or click on a link you save the timestamp in the database. The number of people online is the number of people who have their last activity within a certain time range, like 10 or 15 minutes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now