{"id":613,"date":"2003-12-06T12:00:06","date_gmt":"2003-12-06T20:00:06","guid":{"rendered":"http:\/\/lee.org\/blog\/archives\/2003\/12\/06\/12-6-03\/"},"modified":"2007-03-02T15:18:38","modified_gmt":"2007-03-02T23:18:38","slug":"versacounter-for-png","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2003\/12\/06\/versacounter-for-png\/","title":{"rendered":"Versacounter for PNG"},"content":{"rendered":"<p>Someone asked me for my Versacounter sourcecode. (See Journal 10-23-03).  Here are my notes from vcounter.pl:<\/p>\n<blockquote><p># VersaCounter (version 1.0a) 12-1-03<br \/>\n# Version 1.0 by Michael Chavel. Version 1.0a modifications by Lee Sonko<br \/>\n# 1.0a is a simple port that uses .png files instead of .gif files.<br \/>\n# Recent versions (after 2001?) of the Perl GD module don&#8217;t support .gif files<br \/>\n# due to patent issues with Unisys. 1.0a gets around that issue by swapping .gifs<br \/>\n# for .png files.<\/p><\/blockquote>\n<p>And <a href=\"http:\/\/lee.org\/blog\/images\/20031206versacounter-png.zip\">here is the new (version 1.0a) code<\/a>.<\/p>\n<p>In case you don&#8217;t have it, here is the original (version 1.0) Vesacounter code from Chavel&#8217;s website.<\/p>\n<p>I think Versacounter is a terrific website counter program. I like it primarily because it doesn&#8217;t need server side includes, it&#8217;s customizable on a per-counter basis, it&#8217;s a snap to make new counters, and the code on the web page is very easy to read. Here&#8217;s an example from this Journal page:<\/p>\n<p><code><br \/>\n&lt;img src=\"http:\/\/lee.org\/scgi-bin\/vcounter.pl?&amp;page=journal_index_hits&amp;block=1\" alt=\"[hit meter]\"&gt;<br \/>\nhits from &lt;a href=\"http:\/\/lee.org\/counter.html\"&gt;&lt;\/a&gt;<br \/>\n&lt;img src=\"http:\/\/lee.org\/scgi-bin\/vcounter.pl?&amp;page=journal_index_visits&amp;block=14400\"<br \/>\nalt=\"[visit meter]\"&gt; visits to my journal homepage since October 23rd, 2003.<br \/>\n&lt;a href=\"http:\/\/lee.org\/counter.html\"&gt;&lt;a&gt;<br \/>\n<\/code><\/p>\n<p>That code makes 2 graphical counters, reading &#8220;nnn hits from nnn visits to my journal homepage&#8230;&#8221; I count &#8216;visits&#8217; as a bunch of requests from the same IP address in 14,400 seconds&#8230;. 4 hours. Simple.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Someone asked me for my Versacounter sourcecode. (See Journal 10-23-03). Here are my notes from vcounter.pl: # VersaCounter (version 1.0a) 12-1-03 # Version 1.0 by Michael Chavel. Version 1.0a modifications by Lee Sonko # 1.0a is a simple port that uses .png files instead of .gif files. # Recent versions (after 2001?) of the Perl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-613","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=613"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/613\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}