asp 网站静态化函数代码html
代码如下:
Function htmll(mulu,htmlmulu,FileName,filefrom,htmla,htmlb,htmlc,htmld) if mulu="" then mulu="/" if htmlmulu="" then htmlmulu="/" mulu=replace(SysRootDir&mulu, "//", "/") htmlmulu=replace(SysRootDir&htmlmulu, "//", "/") FilePath=Server.MapPath(mulu)&"\"&FileName Do_Url="http://" Do_Url=Do_Url&Request.ServerVariables("server_name")&htmlmulu&filefrom Do_Url=Do_Url&"?"&htmla&htmlb&"&"&htmlc&htmld strUrl=Do_Url set objXmlHttp=Server.createObject("Microsoft.XMLHTTP") objXmlHttp.open "GET",strUrl,false objXmlHttp.send() binFileData=objXmlHttp.responseBody Set objXmlHttp=Nothing set objAdoStream=Server.CreateObject("Adodb." & "Stream") objAdoStream.Type=1 objAdoStream.Open() objAdoStream.Write(binFileData) objAdoStream.SaveToFile FilePath,2 objAdoStream.Close() set objAdoStream=nothing End Function
相关推荐
Crazyshark 2020-09-05
D先生 2020-07-04
linjava 2020-06-14
shangs00 2020-05-09
一个逗逗 2020-04-16
Ericbig 2020-03-03
doubinning 2020-02-18
shangs00 2020-02-12
qscool 2020-01-30
codeAB 2020-01-19
wangqing 2020-01-18
水痕 2020-01-08
猛禽的编程艺术 2019-12-19
chencourage 2019-11-25
bryantmeng 2019-11-21