A simple PHP counter that counts your website visitors.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
logs
.gitattributes
.gitignore
COPYING
COPYING.LESSER
README.md
counter.php
index.html

README.md

/**
* @author    Eric Sizemore <admin@secondversion.com>
* @package   SV's Simple Counter
* @link      http://www.secondversion.com/downloads/
* @version   4.0.2
* @copyright (C) 2006 - 2018 Eric Sizemore
* @license   GNU Lesser General Public License
*
*	SV's Simple Counter is free software: you can redistribute it and/or modify
*	it under the terms of the GNU Lesser General Public License as published by
*	the Free Software Foundation, either version 3 of the License, or
*	(at your option) any later version.
*
*	This program is distributed in the hope that it will be useful, but WITHOUT 
*	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
*	FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 
*	details.
*
*	You should have received a copy of the GNU Lesser General Public License
*	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

What is SV's Simple Counter?

It is a simple PHP counter that counts your website visitors. It has the ability to either show the count as plain text, or images; and whether or not to count only unique hits, or all hits. (IP Based)

PHP 7.0.0 is currently required due to the use of PHP 7.0.0+ features. It is a work in progress.

Installation

  1. Open 'counter.php', configure the settings near the top of the script.
  2. Create a new folder, named 'counter'.
  3. Upload 'counter.php', 'index.html', and the 'logs' directory in ASCII mode.
  4. Upload the 'images' folder in BINARY mode.
  5. CHMOD the 'counter.txt' and 'ips.txt' files to 0666 (if required). They are located in the 'logs' folder.

Usage

Simply add the following code to the page where you want the counter to be shown:


That's pretty much it, really.