加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程 > 正文

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

发布时间:2020-12-24 14:59:00 所属栏目:编程 来源:网络整理
导读: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


(编辑:核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读