Friends, is there any simple script in php (or some other solution for linux php / mysql server) to know how many users are online on the site? I read that websocket is good for chats. In my case, it's not chat or anything complex is not. Just know even something like:
"xx users online right now".
Also does not need to be every second, hehehe, but type, every 1 minute or the best average between time and non-overhead of the server.
This issue of not overloading the server with requests is important. I was wondering if you have some simple solution that requires as little server as possible and data transfer (I'm using shared hosting for now). The expectation is already having a script that can meet a huge demand of visitors at the same time without overloading the server (when it comes to this, I hope to be with a dedicated server).
Any help is valid! Many thanks!