home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13h.zip / cntdemo1.sht < prev    next >
Text File  |  1999-03-23  |  2KB  |  63 lines

  1. <!--  This demonstrates a few of SRE-Http's built in hit counters.
  2.  
  3. Notes:
  4.   1) you may need to create an empty cntdemo1.cnt file; either in the directory you
  5.     installed this file to, or in your goserve working directory (it depends on
  6.      how you've configured counter.rxx -- by default, you should put 
  7.      cntdemo1.cnt in this file's directory).
  8.      If you neglect to do this, the counter.rxx examples may not work
  9.      (it depends on the counter.rxx create_file option).
  10.   2) Note that hit_owner_suppress and hit_cache_len may make this demo
  11.      rather static.
  12.  
  13. -->
  14.  
  15. <HTML>
  16. <HEAD>
  17. <TITLE>Demo of SRE-Http counters</TITLE>
  18. </HEAD>
  19.  
  20. <BODY> 
  21. <h1> This demonstrates the use of various SRE-Http counters.</h1>
  22.  
  23. <!-- interpret code
  24.    tmp1=extract('clientaddr');
  25.    foo=wordpos(tmp1,get_value('OWNERS'));
  26.    foo2=0;
  27.    if get_value("hit_cache_len")<>0 then foo2=1;
  28.    if foo>0  & get_value("HIT_OWNER_SUPPRESS")=1 then do ;
  29.         queue " Warning: You are an OWNER, and HIT_OWNER_SUPPRESS is on: several of these counts will not be augmented.";
  30.    end;
  31.    if foo2>0 then queue " <br> Warning: HIT_CACHE_LEN < >0, several of these counts will not be augmented. ";
  32. -->
  33.  
  34. <!-- cache no -->
  35. <ol> 
  36. <li> The <!-- Replace hits --> server side include
  37. counter:  <TT><!-- Replace Hits -->   </TT>
  38.  
  39.  
  40. <li> The <!-- Replace count --> server side include
  41. counter:  <TT><!-- Replace count --></TT>
  42.  
  43. <li> The XCOUNT CGI-Bin counter, called with < img src="/cgi-bin/xcount?count1">:
  44. <TT> <img src="/cgi-bin/xcount?count1">       </TT>
  45. <li> The JCOUNT SSI counter, called with <!-- #exec cmd="jcount?cntdemo1" -->:
  46. <TT> <!-- #exec CMD="jcount?cntdemo1" -->    </TT>
  47.  
  48. <li> The Counter.rxx counter, called with <!-- INTERPRET FILE
  49. COUNTER.RXX file=cntdemo1.cnt --> : <code> <!-- interpret file counter.rxx  file=cntdemo1--> </code>
  50.  
  51.  
  52. <li> The Counter.rxx counter, called with
  53. <br> < IMG SRC="/counter.rxx?file=cntdemo1&graphic=normal&increment=0&width=4" >:
  54.  <img SRC="/counter.rxx?file=cntdemo1&graphic=normal&increment=0&width=4">
  55.  
  56.  
  57. </ol>
  58.  
  59. <a href="cntdemo2.sht">see a few more graphical counters?</a>
  60.  
  61. </BODY>
  62. </HTML>
  63.