展会信息港展会大全

asp简单文本计数器 android软件开发教程
来源:互联网   发布日期:2016-03-01 11:02:10   浏览:3382次  

导读:% Set fs = CreateObject(Scripting.FileSystemObject) Wfile=server.mappath() cgi-binwww.111cn.cn/asp/asp.html.txt on error resume next Set a = fs.OpenTextFile(Wfile) hits = Clng(a.ReadLine) hits = hits + 1 a.close if error then hits = 1 end...

<%

Set fs = CreateObject("Scripting.FileSystemObject")

Wfile=server.mappath("") & "cgi-binwww.111cn.cn/asp/asp.html.txt"

on error resume next

Set a = fs.OpenTextFile(Wfile)

hits = Clng(a.ReadLine)

hits = hits + 1

a.close

if error then

hits = 1

end if

Set a = fs.CreateTextFile(Wfile,True)

a.WriteLine(hits)

a.Close

%>

Number of hits: <% =hits %>

人数在您的文件将增加到每一次您的网页访问。最后一行在此脚本可以让您将显示的点击次数在您的回复页面。

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港