09-08
16
asp下载次数统计代码
作者:Java伴侣 日期:2009-08-16
<%
sub numpad()
set files=server.createobject("scripting.filesystemobject")
set numtxt=files.opentextfile(server.mappath("/num/num.txt"))
application("num")=numtxt.readline
numtxt.close
application("num")=application("num")+1
response.write application("num")
set numtxt=files.createtextfile(server.mappath("\num\num.txt"),true)
numtxt.writeline(application("num"))
numtxt.close
end sub
application.lock
numpad
application.unlock
%>
sub numpad()
set files=server.createobject("scripting.filesystemobject")
set numtxt=files.opentextfile(server.mappath("/num/num.txt"))
application("num")=numtxt.readline
numtxt.close
application("num")=application("num")+1
response.write application("num")
set numtxt=files.createtextfile(server.mappath("\num\num.txt"),true)
numtxt.writeline(application("num"))
numtxt.close
end sub
application.lock
numpad
application.unlock
%>
评论: 0 | 引用: 0 | 查看次数: 284
发表评论