虚拟主机重启代码
程序员文章站
2022-07-12 08:16:58
复制代码 代码如下:<% response.write "
" call server_update("cache") call...
" call server_update("cache") call...
复制代码 代码如下:
<%
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
下一篇: 用xmlhttp编写web采集程序