Faichan's Revolving Java Counters

second version: Feb,1999

to be continued...?
Counter0.java
Counter0.class
(just a test)
Counter1.java
readme.txt
c1_110.zip
Counter2.java
jnum.jpg
readme.txt
c2_110.zip

CGI version
Java Labo


About Java Counter

Sample server-parsed HTML of a SSI counter with server-side "count" file (ASCII numeric).
No server-side script file needed.
You are the
<!--#exec cmd="sh -c 'c=`cat count`;expr $c + 1 | /usr/bin/tee count'"-->
th visitor.<br>

Installation Instruction

  1. Enable SSI on your pages. (ask your web-master how to enable SSI.)
    NCSA server:
    Make ".htaccess" file on your "public_html" directory
    and write following line:
    AddType text/x-server-parsed-html .html
  2. make "count" file on your web server somehow.
    e.g.
    1. login web server (UNIX).
    2. $ echo 0 > count[return]
    3. $ chmod 606 count[return]
  3. download
    c1_110.zip for Counter1
    or
    c2_110.zip for Counter2.
  4. extract the zip file. (don't extract Counter*.zip file in the zip file.)
    (extracted c1_110, c2_110)
  5. read "readme.txt" and try sample1.html.
    (c1_110/readme.txt, c2_110/readme.txt)
  6. copy and paste applet tag from sample2.html to your HTML file and modify it.
  7. upload your HTML file, Counter*.zip (corresponds to Netscape's "archive" attribute)
    and *.class files to the same directory on the web server.
    (otherwise, use "codebase" attribute like this page to use different directories)
    Caution: Counter*.zip and *.class files must be uploaded via binary (not ASCII) mode.
Copyrights reserved.
Free to use them.
If you want to put one of these applets on your web page:
Please tell me the location(URL).
I hope you to describe some copyright notation on the page.

mailto:faichan@kt.rim.or.jp