%
dim endtime
dim startime
startime=timer()
%>
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)}; dbq= " & server.mappath("news/admin/data/xqxxdata.asp")
%>
<%
dim fso,f,no,I '定义变量绝对是个好习惯
Set fso = CreateObject("Scripting.FileSystemObject") '建立对象的实例
Set f = fso.OpenTextFile(Server.MapPath("count.no"), 1, True) '建立文本文件,打开为只读.
response.cookies("JSQAddress").expires=date+1
if f.AtEndOfStream then '判断这个文件是否不存在
no=1
response.cookies("JSQAddress")="fangke"
else
a=request.cookies("JSQAddress")
IF a<>"fangke" THEN
no=f.ReadLine
no=no+1
response.cookies("JSQAddress")="fangke"
else
no=f.ReadLine
no=no+0
end if
end if
f.Close
set f=fso.OpenTextFile(Server.MapPath("count.no"),2,True) '准备写
f.Write(no) '写入
%>
新桥小学