/** * @author Eric Sizemore <firstname.lastname@example.org> * @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/>. */
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) What is SV's Simple Counter?
PHP 7.0.0 is currently required due to the use of PHP 7.0.0+ features. It is a work in progress.
- Open 'counter.php', configure the settings near the top of the script.
- Create a new folder, named 'counter'.
- Upload 'counter.php', 'index.html', and the 'logs' directory in ASCII mode.
- Upload the 'images' folder in BINARY mode.
- CHMOD the 'counter.txt' and 'ips.txt' files to 0666 (if required). They are located in the 'logs' folder.
Simply add the following code to the page where you want the counter to be shown: Usage
That's pretty much it, really.