Manual:showSiteStats.php
Appearance
MediaWiki version: | ≥ 1.6 |
MediaWiki file: showSiteStats.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | ShowSiteStats |
Details
[edit]showSiteStats.php file is a maintenance script, to show the cached statistics. It is basically Special:Statistics as a command line tool.
Options
[edit]This script does not accept any options.
Usage
[edit]php maintenance/run.php showSiteStats
Terminal
$ php maintenance/run.php showSiteStats Total edits : 45 Number of articles: 2 Total pages : 13 Number of users : 2 Active users : 5 Number of images : 2
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.