Advertisement
6_2008-2009 Classes/ Frameworks/ OOP #213413

A simple ASP Daily Hit Counter

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

AI

Tóm tắt bởi AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Mã nguồn
original-source
<%
  
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!
Bình luận gốc (3)
Được khôi phục từ Wayback Machine