[求助]关于APPLICATION的使用方法和弊端
同题
如下使用方法会不会拖垮服务器啊
<script language=vbscript runat=server>
sub application_onstart
Provider = "Provider=Microsoft.Jet.OLEDB.4.0;"
Path = "Data Source=" & Server.MapPath("data.mdb")
Set conn= Server.CreateObject("ADODB.Connection")
p1=Provider&Path
conn.Open P1
sql="select * from www_info"
set rs=conn.execute(sql)
if not(rs.eof and rs.bof) then
application("title")=rs("info_title")
application("tel")=rs("info_tel")
application("add")=rs("info_add")
application("mail")=rs("info_email")
application("net")=rs("info_net")
application("cert")=rs("info_cert")
application("fax")=rs("info_fax")
application("logo")=rs("info_logo")
end if
end sub
sub application_onEnd
application("title")=""
application("tel")=""
application("add")=""
application("mail")=""
application("net")=""
application("cert")=""
application("fax")=""
application("logo")=""
end sub
</script>