当前位置:编程学习 > asp >>

虚拟主机重启代码

答案:

<%
response.write "<br>"
call server_update("cache")
call server_update("session")
response.write "<br>虚拟主机重启成功!"
sub server_update(byval strt)
if strt="" then strt=request.querystring("delete")
select case strt
case "cache"
Application.Lock
application.contents.Removeall
Application.unLock
response.write "Delete Cache Succeed!<br>"
case "session"
session.Abandon
response.write "Delete Session Succeed!<br>"
end select
end sub
%>

保存为iisrestar.asp

上一个:实例学习如何在ASP中调用DLL
下一个:Jmail组件发送邮件之绝对能用的函数

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,