自制的點(diǎn)擊計(jì)數(shù)器

代碼:

<%

Set FS=Server.CreateObject("Scripting.FileSystemObject")

Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"), 1, False)

fcount=RS.ReadLine

RS.Close

 

fcount=fcount+1

 

'This code is disabled due to the write access security on our server:

'Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"), 2, False)

'RS.Write fcount

'RS.Close

 

Set RS=Nothing

Set FS=Nothing

 

%>

<!DOCTYPE html>

<html>

<body>

<p>

This page has been visited <%=fcount%>  times.

</p>

</body>

</html>

結(jié)果:

This page has been visited 12345 times.

相關(guān)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频