注册 登录
编程论坛 ASP技术论坛

这个页面放在服务器上,防止删除了 怎么回事?

wmxiaofu 发布于 2012-10-30 16:18, 407 次点击
<%
'网站头部文件
On Error Resume Next
Function BytesToBstr(Body,Cset)
Dim Objstream
Set Objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
%>

这个页面放在服务器上,防火墙删除了 怎么回事?


[ 本帖最后由 wmxiaofu 于 2012-10-30 16:22 编辑 ]
1 回复
#2
aspic2012-10-30 18:05
Server.CreateObject("adodb.stream")
估计认为你这个代码是危险的
1