home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 July & August / Pcwk78a98.iso / Internet / Omnihttp / OH20A8.EXE / data1.cab / CGI / Cgi-Bin / VISITOR.TXT < prev   
Encoding:
Text File  |  1998-04-08  |  4.4 KB  |  121 lines

  1. Visitor.exe 2.0a - A .CGI counter for the masses...:)
  2.  
  3. I ask absolutely nothing for this program except that if you find the 
  4. time, to come by my site and check it out (it's listed below).
  5.  
  6. I.      Intro
  7. II.     Known Conflicts
  8. III.    Setup
  9. IV.     Problems?
  10. V.      Future Updates
  11.  
  12. ------------------------
  13.  
  14. I. Intro
  15. --------
  16. Ok, You've got you're pretty home page all set up and ready to go but 
  17. you've seen those cool little counters on other people's homepages and
  18. wanted to put one on your's too.  Well, I wrote one that simply reads 
  19. a number from a text file, creates an odometer image of it, adds one 
  20. to it, and write it back to the file.  I have decided not to include 
  21. noadd.exe in this release for size reasons.  Check my website for an 
  22. update if you really want it.  Here is a step-by-step guide to setting 
  23. it up for your server.
  24.  
  25.  
  26. II.  Known Conflicts/Restrictions
  27. ---------------------------------
  28. I should get this out of the way right now.  Since this is being
  29. distributed with OmniHTTPd this shouldn't be a problem but this 
  30. program ("visitor.exe") is compiled to run under 95/NT only.  If 
  31. you are interested in the source code, I have made it public at my
  32. website listed below.  There are two versions in the zip.  A Visual 
  33. C++ 4.0 project and a stripped down version that should compile for
  34. just about any system.
  35.  
  36.  
  37. III.  Setup
  38. -----------
  39. Here's a quick and dirty setup guide to running visitor.exe on your 
  40. web server.
  41.  
  42. A. Make sure "visitor.exe" is in your CGI-BIN directory (it should 
  43.    be there by default).
  44.  
  45. B. Make sure that in the OmniHTTPd Administration program, under 
  46.    "Standard CGI", there is an entry for "/CGI-BIN" as the virtual
  47.    and "C:\HTTPD\CGI-BIN" for actual (or whatever you specified the 
  48.    directory to be).
  49.  
  50. C. Run the visadmin program.  When prompted enter a one word reference 
  51.    name up to 256 characters (I wouldn't make it that long if I were you
  52.    though...)  Then give the program a starting value.  It must be a 
  53.    positive whole number.  I haven't done to much error checking in visadmin
  54.    so I don't know how it will react to bad input.  Just stick to numbers 
  55.    and no spaces ok? :)
  56.    
  57.    It will then print out some code like:
  58.  
  59.    <IMG SRC="/CGI-BIN/visitor.exe?referencename">
  60.  
  61.    Use this in your page to implement the counter.
  62.  
  63.    If you know your way around the registry can just add the keys 
  64.    (DWORD Value in decimal not hex) in:
  65.  
  66.    HKEY_LOCAL_MACHINE\\SOFTWARE\\Visitor
  67.  
  68.    If not, use the visadmin program to add keys.  It should be easy 
  69.    to use.  When you run the visdamin program, it will give you the 
  70.    HTML code you need to run that reference name.
  71.  
  72. D. Now go test it out!
  73.  
  74.  
  75. IV. Problems? Suggestions?
  76. --------------------------
  77.  
  78. Now since you didn't pay for this, I don't have a toll-free technical
  79. support line to help you (Not that Microsoft has one mind you) but I 
  80. will try to help you out if I can.  Keep in mind that I am a student as
  81. well and as much as I would like computer time to come first, it can't
  82. always.  Also, any suggestions are welcome. My current email is 
  83. "reflux@u.washington.edu" and my web page is at 
  84. http://weber.u.washington.edu/~reflux
  85.  
  86.  
  87. V. Future Updates
  88. -----------------
  89. I will dedicate a page on my server for a while to it.  Check it for
  90. updates.
  91.  
  92. http://weber.u.washington.edu/~reflux/visitor
  93.   This will be up as long as I go to the University of Washington.
  94.  
  95. Things added:
  96.  
  97. *Ver 2.0a
  98. -Now includes deafult counter.  If no reference name is supplied, it
  99.  uses a default counter.  However, to prevent unauthorized use, new 
  100.  keys must be added/modified with visadmin.
  101. -Fixes bug in visadmin where it won't initially run without a key in 
  102.  the registry. (Kinda bad I know!)
  103.  
  104. *Ver 2.0 (up from early test versions)
  105. - This is a stable release with decent features and security measures.
  106. - Now using the windows registry instead of files.
  107.  
  108.  
  109. DISCLAIMER
  110. ----------
  111.  
  112. Now I know that this part sucks but I have to do it.
  113.  
  114. Garrick and I are in no way responsible for what happens from the use
  115. of this program.  I wrote it myself and use it on my server so there
  116. are no viruses in it and it will not intentionally harm your system 
  117. but in using it, you accept the risk that something MIGHT happen and 
  118. agree not to hold anyone but yourself responsible.
  119.  
  120. Whew...I hate that crap.  I hope you have fun with the program and let
  121. me know if you're using it!