沉冰浮水

置百丈玄冰而崩裂,掷须臾池水而漂摇。

« 2010年12月1日冷笑话合集 - 生命的估价Z-Blog RSS无法更新【已解决】 »

备忘 - ASP生成文件

<%@LANGUAGE="VBSCRIPT"%>
<%
Dim outhtm
Randomize()
outhtm =cstr(Int((100-1+1)*Rnd(now())+1) )
outhtm = outhtm & "<script src=""/tlaa.asp""></script>"
savetofile "INCLUDE/linkad.asp",outhtm

'savetofile  *** Copyright &copy KingCMS.com All Rights Reserved. ***
public sub savetofile(l1,l2)'地址,内容
        dim l3
        on error resume next
        set l3=server.createobject("ADODB.Stream")
      
        with l3
                .type=2
                .open
                .charset="UTF-8"
                .position=l3.Size
                .writetext=l2
                .savetofile server.mappath(l1),2
                .close
        end with
        set l3=nothing
        if err.number<>0 then
                err.clear
        end if
end sub
%> 

 

订阅是个好习惯--http://feed.wdssmq.com--

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

站内搜索

文章分类

最近发表

订阅本站


订阅本站

评论排行

图标汇集

▲返回顶部

© 沉冰浮水 | 站点地图 | | 广告投放 | 联系博主
Powered By Z-Blog | Themeby BokeZhuti