April CIS200 blog

Friday, March 11, 2005

Friday-endwk9

Today I just worked on Project4 and look up some information that might be helpful for project 4 here is what I found at http://www.codeave.com/asp/code.asp?u_log=120

To see an example of the code go to the website above.

Daily Hit Counter

There are many ways to track usage of a website. The simplest way is with a hit counter, which will give you a raw count, but will not tell you how many people are visiting on any giving day. Utilizing the current date function a text document will be created utilizing the date as part of its naming convention in the same directory (providing that directory has user write access, you may need to place the documents in your cgi-bin depending on your provider) as the page we want the counter to appear on. The .txt file is first read to gain the value of the last hit count, one is added to that number, written to the .txt document, closed and the counter value is written as text to the page. If there is no text document (counter) for the current date one is automatically created. Refresh the content of the output page for a more complete illustration of the working counter.

0 Comments:

Post a Comment

<< Home