设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 数据 手机
当前位置: 首页 > 站长学院 > Asp教程 > 正文

ASP#39;禁止网页缓存,验证码生成,删除文件 iFileName 文件名 iP

发布时间:2020-12-24 07:05 所属栏目:120 来源:网络整理
导读:Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" '验证码生成 dim yz2 randomize timer yz2=Int((8999)*Rnd +1009) session("ok

Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
'验证码生成
dim yz2
randomize timer
yz2=Int((8999)*Rnd +1009)
session("ok")=yz2
%>

<%
?'有关文件操作
?'Power by huang_ke@hotmail.com
?
?'删除文件 iFileName 文件名 iPath 文件路径
?sub DelFile(iFileName,iPath)
?
??realpath = Server.MapPath(iPath) & "\" & iFileName
??Set fso = Server.CreateObject("Scripting.FileSystemObject")
??fso.DeleteFile(realpath)
??
??Set fso = nothing
?
?end sub


(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读