Search Tools Links Login

A simple ASP Daily Hit Counter


It shows Number of daily visitors or users to your site.

Original Author: SJPVTLTD.COM

Inputs

No

Assumptions

Is application variable working on your Web Server or IIS?

Returns

No. of Daily Visiters Or Users

Side Affects

No

API Declarations

Copyright ? 2003-2004 efreedownloads.com

Code

<%
  
Dim x, y, temp, serv, D, hits
x = Trim(day(date()))
D = Application( "serv" )

   If D = x Then
      Application( "hits" ) = Application( "hits" ) + 1
    Else
      
      Application( "hits" ) = 1

   End If
   y = x
   temp = y
   Application( "serv" ) = temp
%>
There have been <%=Application( "hits" )%> hits to this page today!

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 94 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.