Jim,

Since you're asking this question on WEB400, I assume you're running your
site on an iSeries (either Apache based or Classic).  An easy way to do it
is to turn on server logging.  Then use a program like UltraEdit that will
count the occurrences of a string (in this case, the address of the page)
to view your log files.

Unfortunately, the log files (at least the classic log files) are not in a
very friendly format for doing any serious analysis, so we wrote a Net.Data
macro that writes HTTP request info to a physical file, and we do an SSI
exec cgi include with it on every page for static pages.  For our dynamic
Net.Data stuff, we just call a function.

Mike E.





                                                                                
                                                  
                      "Mark A. Manske"                                          
                                                  
                      <mmanske@minter-w        To:       "'Web Enabling the 
AS400 / iSeries'" <web400@xxxxxxxxxxxx>               
                      eisman.com>              cc:                              
                                                  
                      Sent by:                 Subject:  RE: [WEB400] visit 
counters                                              
                      web400-bounces@mi                                         
                                                  
                      drange.com                                                
                                                  
                                                                                
                                                  
                                                                                
                                                  
                      01/22/2004 03:50                                          
                                                  
                      PM                                                        
                                                  
                      Please respond to                                         
                                                  
                      Web Enabling the                                          
                                                  
                      AS400 / iSeries                                           
                                                  
                                                                                
                                                  




Jim,

Yes - there are many options available, depending on how your static page
is
designed.


One example follows:sorry, frontpage code:

<p align="right">You are visitor number <!--webbot bot="HitCounter"
u-custom
i-digits="0" i-image="0" preview="&lt;strong&gt;[Hit
Counter]&lt;/strong&gt;" i-resetvalue="10500" startspan --><img
SRC="_vti_bin/fpcount.exe/?Page=Default.htm|Image=0" ALT="Hit
Counter"><!--webbot bot="HitCounter" endspan i-checksum="5865" --></p>


Another way to do this involves using web based counters, basically you
embedd
the code into your static web page, the site will show you how, and advise
you in
most cases for a link to their site or their sponsors site.  I do not have
any
available right now, but search the web for "hit counts/hit counters" or
the
such,
some are free, some are pay.

You could also write your own cgi script on the server (most servers will
support this)
regardless of the language (ms, linux, unix, os/400, or even mac)

HTH

Mark

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On
Behalf Of Jim Franz
Sent: Thursday, January 22, 2004 1:43 PM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] visit counters


Is there a way to count visitors on a static page (html only)?
Management wants to know.
jim

_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.