怎样做日访问量统计,月访问量统计,有详细代码或例子吗
我是这么统计总访问量的
<% if session("user")="" then session("user")="user"
application.lock
set obj=server.createobject("scripting.filesystemobject")
path=server.mappath("count.txt")
set file=obj.opentextfile(path)
application("counter")=file.readline
file.close
if session("user")="user" then
application("counter")=application("counter")+1
else
application("counter")=application("counter")
end if
session("user")="user2"
counter=application("counter")
set file=obj.createtextfile(path)
file.writeline counter
file.close
application.unlock
x=cstr(counter)
%>