counter.exe
 
description properties samples tips & tricks build your own view stats download latest version buy counter.exe www.develcor.com

 

  Description:

Counter.exe is a full 32 bit cgi program written for Windows NT environment. It offers one of the most customizable interface and great statistics tracking abilities.

  • Small & fast, full 32 bit code.
  • Tracks multiple pages
  • Logs visitors in small foot print file
  • Highly customizable through property tags
  • Easy to use, full documentation included
  • Full 32 bit CGI for stats viewing
  • Full 32 bit CGI for building your counter
  • Counter.exe logs pages and visitors in a small foot print file. Its companion viewcount.exe is a full 32 bit CGI which will allow you to view and track visitors to your site. Follow this link to view actual stats for this server (hit the back button of your browser to return here).

    Counter.exe comes with another full 32 bit CGI to help you determine the fonts available on your server and set the different properties. Read the property section, familiarize yourself with the different tags and their possible values and take a look at BuildCnt.exe on this server.


      Properties:

    Counter.exe offers a high degree of customization. Not only backgrounds and foregrounds but also typefaces, point sizes, etc. Most properties have default values and do not have to be set.
    NAME DESCRIPTION
      page This tag has no default value. Use unique names to use mutiple pages.
      expiry Sets the expiry expressed in minutes.
    DEFAULT: 0 (every refresh/reload counts)
      face Any font name installed on the server.
    DEFAULT: MS SANS SERIF
      ptsize Use this tag to reset the point size.
    DEFAULT: 8
      textcolor RGB color value as in HTML tags ie: FFFFFF = white.
    DEFAULT: 00FF00 (lime)
      bgcolor As the text color the background color can be set.
    DEFAULT: 000000 (black)
      bold This tag accepts only 2 values: on off
    DEFAULT: ON
      align Valid values are: left center right
    DEFAULT: RIGHT
      border Determines the width of the border in pixels.
    DEFAULT: 4
      style The style overrides any other settings. Valid styles are 1 to 17, use 0 or nothing to activate other tags.
    DEFAULT: NONE
      bmp If present the CGI will look for the bitmap file called "counterX.bmp" where X is the value of the bmp tag allowing different looks for different pages.
    DEFAULT: NONE (the default bitmap is used)

      Samples:

    counter.exe comes with 17 styles and unlimited variations using the different properties. You can also create your own style.

    For each sample the properties set are shown as well as the HTML code. It is assumed that counter.exe is located in the CGI-BIN directory of the server.

    FACE=VERDANA TEXTCOLOR=FF0000
    <img src="/cgi-bin/counter.exe?page=sample&face=verdana
    &textcolor=FF0000">
    FACE=LUCIDA CONSOLE TEXTCOLOR=00FF00 ALIGN=CENTER BMP=1
    <img src="/cgi-bin/counter.exe?page=sample&face=lucida+console
    &textcolor=00FF00&align=center&bmp=1">
    FACE=COMIC SANS MS PTSIZE=12 TEXTCOLOR=00FFFF ALIGN=LEFT BMP=2
    <img src="/cgi-bin/counter.exe?page=sample&face=comic+san+ms
    &ptsize=12&textcolor=00FFFF&align=left&bmp=2">
    FACE=COURIER NEW PTSIZE=16 TEXTCOLOR=0000FF ALIGN=CENTER
    BGCOLOR=FFFFFF BOLD=OFF BMP=2
    <img src="/cgi-bin/counter.exe?page=sample&face=courier+new&ptsize=16
    &textcolor=0000FF&align=center&bgcolor=FFFFFF&bold=off&bmp=2">
    STYLE=13
    <img src="/cgi-bin/counter.exe?page=sample&style=13
    FACE=SCRIPT TEXTCOLOR=0000FF ALIGN=CENTER
    PTSIZE=20 BGCOLOR=FFFFFF BMP=1 BORDER=0
    <img src="/cgi-bin/counter.exe?page=sample&face=script&
    textcolor=0000FF&align=center&ptsize=20&bgcolor=FFFFFF&bmp=1
    border=0">
    FACE=WINGDINGS TEXTCOLOR=FF0000 ALIGN=CENTER
    PTSIZE=12 BGCOLOR=FFFFFF BMP=1 BORDER=0 BOLD=OFF
    <img src="/cgi-bin/counter.exe?page=sample&face=wingdings&
    textcolor=FF0000&align=center&ptsize=12&bgcolor=FFFFFF&bmp=1
    border=0&bold=off">

     

      Tips & Tricks:

    Counter.exe comes with a companion CGI which will list all available fonts on the server and help you build your own counter. Try it on this server.

    The value of the counter is allways printed within a rectangle. This rectangle has the same value as the size of the bitmap being used minus the border value:

    rectangle left = border value
    rectangle top = border value
    rectangle right = bitmap width - border value
    rectangle bottom = bitmap height - border value

    To create a counter which looks as having a transparent background and no border, create a bitmap big enough for the counter value to appear and set the bgcolor tag to the same value as the page background. Then simply set the border value to 0. See the example above.

    Hidding the counter:

    You can hide the counter from visitors. No one wants to see a counter displaying 1 or 2. Instead of starting the count at a fictitious number set the Border to 0, the TextColor and the BgColor to the same color as the page background and the counter will not be visible. The stats will still be available.

    Hidding the counter Part II:

    Set the Face tag to use a symbol font and instead of digits your counter will display small symbols making it somewhat decoratif and hidding the actual count from visitors.

    Setting the count:

    Counter.exe stores the counts for the different pages in a text file called counter.txt in your CGI directory:

    page1=101
    page2=93
    page3=97
    To reset the different counts simply edit the file and place it back in your CGI directory. To reset all counters to 0 just delete the file, counter.exe will re-create it and restart all counts from 0.

    Log file:

    Counter.exe's log file is a small foot print text file. While servers usually create those monstruous log files counter.log writes at most 30 bytes (characters) per page viewed plus the page name.

    980627140714;1041;12.68.177.70;
    980627140729;1062;12.68.177.70;
    980627140820;1051;12.68.177.70;
    980627141010;1071;12.68.177.70;
    980627141130;1045;12.68.177.70;
    Use small key names or numbers to use the page tag. By following those rules your counter.log file will hold 25,000 entries (page viewed) per Meg in comparison a server log with 25,000 page viewed could possibly reach over 100 megs.

    Page Reference file:

    To display the stats viewcount.exe looks into the pagerefs.txt file to replace the values found in the log file:

    1051=/games/battle.htm
    1052=/web/startpage.htm
    1054=/utilities/bmptogif.htm
    1055=/utilities/bmptogifpro.htm
    Using this technique the size of the log file is greatly reduced.

      [Specification]   [Properties]   [Samples]   [Tips & Tricks]
    [Build Your Own]   [View Stats]   [Download]


    Copyright© 1997 - 1999 DevelCor