作业帮 > ASP > 教育资讯

ASP教程:asp 网站静态化函数代码html

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 03:07:14 ASP
ASP教程:asp 网站静态化函数代码html
ASP教程:asp 网站静态化函数代码htmlASP
【51Test.NET-ASP教程:asp 网站静态化函数代码html】:
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

ASP