PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Can anyone point me to such code, that shows status of user, whether they are online. Like on Myspace, it states user is online now and when not nothing is shown.
Everytime a user has a page request, update his `lastrequest` row in your users table (assuming its a timestamp). Then simply query with WHERE `lastrequest` < 300