"20 users online" style user tracking is (was) a favourite of ASP websites - this class allows you to do the same thing easily in PHP. The OnlineUsers class uses a leightweight mySQL table to track the users, logging them to a table. Details of who is online and how many users is then easily retrieved. This latest version features an optimised database structure and calls to the database.
This class like all PHP classes on sloppycode.net was made in PHP 3.x or 4, so unfortunately isn't guaranteed to be error free anymore.