80

help

Project 33

"Bug" Web Page Hit Counter

The Neurillion Free Web Page Hit Counters are free items from Neurillion released under a Creative Commons Attribution 3.0 License. These counters were written by the author for the author to test various methods of recording and displaying a page hit counter and come with absolutely no guarantee or warranty. Please refer to the FAQ and help sections for more information and a proper disclaimer.

"Bug"

This page is about a counter style referred to as "bug" -- not about any bugs in code.

The "Bug" counter is the simplest pure "hit" recorder counter offered by Neurillion. This counter simply records a "hit" whenever a specific image is loaded. That is, the page "hit" is recorded through the use of an <img> tag. Think of it like those annoying television channel identification images on the bottom of the screen that seem to be everwhere now -- although whereas those annoying images seem to be continuously increasing in size, this "bug" is actually only a single transparent dot. As with all of the counters, the hit is stored in an sqlite3 database. This counter only keeps a record of the total count of hits -- no other data is stored. No cookies are used or required. However, this counter also does NOT display a hit count or any other visible object.

The program will use a built in default transparent gif image (ie: 1x1t.gif created with GIMP), unless an alternative is specified.

Example usage (in HTML):


<img border=0 src="http://site.com/path/to/counterprog?mime_image_type=path_to_image">

Here is the "bug" for this page, using the default built in image border=1:     (Check the total)

For example, to use an alternate image such as /tmp/x.jpg, it would be, ?jpg=/tmp/x.jpg. The "mime_image_type" is put after the "image/" in the header -- so any standard image type should work.

Source