zoukankan      html  css  js  c++  java
  • ASP'禁止网页缓存,验证码生成,删除文件 iFileName 文件名 iPath 文件路径

    <%'禁止网页缓存
    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
    %>

    删除文件 iFileName 文件名 iPath 文件路径
    <%
     '有关文件操作
     '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

    %>

  • 相关阅读:
    POJ1704 Georgia and Bob
    BZOJ1299 巧克力棒
    IPSec
    GRE协议
    L2TP协议
    AAA及Radius
    网络安全概论
    路由策略与引入
    BGP协议
    路由协议
  • 原文地址:https://www.cnblogs.com/tdalcn/p/672917.html
Copyright © 2011-2022 走看看