欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP常用的系統(tǒng)配置函數(shù)

 更新時(shí)間:2008年04月29日 22:22:32   作者:  
這個(gè)函數(shù)多用來后臺(tái)表單設(shè)置,然后生成asp配置文件的函數(shù),這樣不用每次都讀取數(shù)據(jù)庫,提高程序速度
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) & "        '網(wǎng)站名稱" & vbcrlf
 hf.write "Const SiteTitle=" & chr(34) & trim(request("SiteTitle")) & chr(34) & "        '網(wǎng)站標(biāo)題" & vbcrlf
 hf.write "Const SiteUrl=" & chr(34) & trim(request("SiteUrl")) & chr(34) & "        '網(wǎng)站地址" & vbcrlf
 hf.write "%" & ">"
 hf.close
 set hf=nothing
 set fso=nothing 
end sub

相關(guān)文章

最新評(píng)論