加入收藏 | 设为首页 | 会员中心 | 我要投稿 银川站长网 (https://www.0951zz.com/)- 云通信、基础存储、云上网络、机器学习、视觉智能!
当前位置: 首页 > 站长学院 > Asp教程 > 正文

ASP寻常的系统配置函数

发布时间:2023-07-20 13:23:15 所属栏目:Asp教程 来源:
导读:ASP寻常的系统配置函数:sub SaveConfig() dim fso,hf set fso=Server.CreateObject("Scripting.FileSystemObject") set hf=fso.CreateTextFile(Server.mappath("../inc/config.asp"),true) hf.write "<" & "%" & vb

ASP寻常的系统配置函数:

sub SaveConfig()

 dim fso,hf

 set fso=Server.CreateObject("Scripting.FileSystemObject")

 set hf=fso.CreateTextFile(Server.mappath("../inc/config.asp"),true)

 hf.write "<" & "%" & vbcrlf

 hf.write "Const SiteName=" & chr(34) & trim(request("SiteName")) & chr(34) & "        '网站名称" & vbcrlf

 hf.write "Const SiteTitle=" & chr(34) & trim(request("SiteTitle")) & chr(34) & "        '网站标题" & vbcrlf

 hf.write "Const SiteUrl=" & chr(34) & trim(request("SiteUrl")) & chr(34) & "        '网站地址" & vbcrlf

 hf.write "%" & ">"

 hf.close

 set hf=nothing

 set fso=nothing 

end sub

(编辑:银川站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章