急救,大家帮我看看哪儿有错误

963852741 2004-02-17 02:39:33
欢迎光临本站 您是第<font color="#990000" size="2">
<%
On Error Resume Next
dim fsobject,fileobject,count,tobject
set fsobject=server.createobject("scripting.filesystemobject")
set fileobject=fsobject.GetFile(Server.MapPath("counter.txt"))
set tobject=Fileobject.OpenASTextStream(1,-2)
count=clng(tobject.ReadAll)
if session("vistornum")="" then
count=count+1
session("vistornum")=count
else
session("vistornum")=count
end if
set tobject=fsobject.createtextfile((server.mappath("counter.txt")),true)
tobject.write cstr(count)
set fsobject=nothing
set fileobject=nothing
set tobject=nothing
response.write "<font color='#990000'><strong>"& count&"</strong></font>"
%>
</font> 位访问者<br>记数到1309就出错了。
...全文
77 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧