Recent Changes - Search:




Summary: Display the number of current visitors
Version: 1.23
Prerequisites: PmWiki version: 2.0.; last tested on PmWiki version: 2.1.26.
Categories: Layout

Questions answered by this recipe

How can I know how many visitors are currently surfing on my site?


Copy CurrentVisitors.phpΔ to the cookbook directory and add include_once("cookbook/CurrentVisitors.php"); to config.php.


In your wiki pages, add the markup (:CurrentVisitors:) to display the number of visitors (strictly speaking "different IP addresses") that came to your site during the last MaximumNumberOfSecondsToConsiderAVisitorAsCurrent.

The counter will update only when action=browse.

Release Notes

Version 1.23
Sep 26th 2007 edited by Angelo Beck
Minor Bugfix.

Version 1.22
June 10th 2007 edited by Angelo Beck
Stores the maximum count of visitors in a file.

Added the following variables:

(:MaxCurrentVisitors:) displays the maximum number of visitors online at the same time.
(:MaxCurrentVisitorsTime:) displays the time when the maximum of visitors was reached.

Older Versions

Original Script by Christophe David Attach:CurrentVisitors_V1.11.phpΔ

See Also


Christophe David original script
[(approve links) edit diff] version 1.2


See discussion at CurrentVisitors-Talk

User notes +3: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on January 05, 2014, at 10:56 AM