iphone梵高杏花壁纸:请问我的站点是怎么回事?

来源:百度文库 编辑:高考问答 时间:2024/04/29 05:52:48
我写了个网站,用的是asp

使用了asp生成htm

脚本如下:
<%'''''''''''''''''''''''''''''''''''''''''''''''''''''''开始生成html页
addr=request.ServerVariables("SERVER_NAME")
path=request.ServerVariables("PATH_INFO")
path1=Left(path, InStrRev(path,"/"))
'path1=left(path1,len(path1)-1)
'path1=Left(path1, InStrRev(path1,"/"))
zpath="http://"&addr&path1
%>
<%

Function GetPage(url)
dim Retrieval
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False ', "", ""
.Send
GetPage = BytesToBstr(.ResponseBody)
End With
Set Retrieval = Nothing
End Function

Function BytesToBstr(body)
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 = "GB2312"
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
on error resume next
Url=zpath&"zstuijianmb.asp" ''''''''''''''''''''''''''''''''''''''''取模板
wstr = GetPage(Url)

response.write""&url&""

Set fs=Server.CreateObject("Scripting.FileSystemObject")

If (fs.FileExists(server.MapPath("../html/")&"\zstuijian.htm")) Then
fs.DeleteFile(server.MapPath("../html/")&"\zstuijian.htm")
End If

Set CrFi=fs.CreateTextFile(server.MapPath("../html/")&"\zstuijian.htm")
Crfi.Writeline(wstr)
set CrFi=nothing
set fs=nothing
%>

录入新记录的时候,没有问题

可是,要是修改时无效,已成功修改数据表的内容,却无法修改htm文件

删除也不行,是生成了一个空白页,请各位大虾多多指教!

你到www.blueidea.com发贴去问问那里高手很多