Skip to content

A simple access counter that developed by PHP and JavaScript.

License

Notifications You must be signed in to change notification settings

suzushin7/CounterWave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CounterWave: Simple Access Counter

CounterWave is a simple access counter that developed by PHP and JavaScript.

Displays PV for the entire period and the past 30 days.

Features

The main features are as follows.

  • Count the number of visitor accesses.
  • You can display PV for the entire period and the past 30 days.
  • You can specify the IP address you want to exclude.

To actually use it, you must place the necessary files on the server running PHP.

Screenshot

CounterWave

How to use

  1. Save counter-wave.php / counter-wave.js / counter-wave.css in a suitable location.
  2. Add the following HTML to the location of the HTML page where you want to display the access counter.
<div class="counter-wave">
  <p>CounterWave</p>
  <p id="totalViews">Total:</p>
  <ul id="dailyViews"></ul>
  <p id="startDate">Start Date:</p>
</div>
  1. Load CSS and JS.

Load counter-wave.js just before the /body tag.

<link rel="stylesheet" href="css/counter-wave.css">
<script type="text/javascript" src="js/counter-wave.js"></script>
  1. Edit your IP address in the excluded IP address list at the top of counter-wave.php and save.
// List of IP addresses to exclude from the count
$exclude_ips = array(
  '1.2.3.4',
);

License

Distributed under the MIT License.

Author

About

A simple access counter that developed by PHP and JavaScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published