超碰人人人人人,色婷婷综合久久久久中文一区二区,国产-第1页-浮力影院,欧美老妇另类久久久久久

LOGO OA教程 ERP教程 模切知識交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

ASP小偷程序原理和示例源碼

admin
2010年6月27日 17:24 本文熱度 6946
[align=left]現(xiàn)在網(wǎng)上流行的小偷程序比較多,有新聞類小偷,音樂小偷,下載小偷,那么它們是如何做的呢,下面我來做個簡單介紹,希望對各位站長有所幫助。 [br] (一)原理 [br] 小偷程序?qū)嶋H上是通過了xml中的xmlhttp組件調(diào)用其它[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url]上的[url=http://gougou.com/search?search=網(wǎng)頁;&id=24304]網(wǎng)頁[/url]。比如新聞小偷程序,很多都是調(diào)用了sina的新聞[url=http://gougou.com/search?search=網(wǎng)頁;&id=24304]網(wǎng)頁[/url],并且對其中的html進行了一些替換,同時對廣告也進行了過濾。用小偷程序的優(yōu)點有:無須維護[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url],因為小偷程序中的數(shù)據(jù)來自其他[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url],它將隨著該[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url]的更新而更新;可以節(jié)省[url=http://gougou.com/search?search=服務(wù)器;&id=24304]服務(wù)器[/url]資源,一般小偷程序就幾個文件,所有[url=http://gougou.com/search?search=網(wǎng)頁;&id=24304]網(wǎng)頁[/url]內(nèi)容都是來自其他[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url]。缺點有:不穩(wěn)定,如果目標[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url]出錯,程序也會出錯,而且,如果目標[url=http://gougou.com/search?search=網(wǎng)站;&id=24304]網(wǎng)站[/url]進行升級維護,那么小偷程序也要進行相應(yīng)修改;速度,因為是遠程調(diào)用,速度和在本地[url=http://gougou.com/search?search=服務(wù)器;&id=24304]服務(wù)器[/url]上讀取數(shù)據(jù)比起來,肯定要慢一些。 [br] (二)事例 [br] [br] 下面就xmlhttp在asp中的應(yīng)用做個簡單說明 [br] [br] <-% [br] '常用函數(shù) [br] [br] '1、輸入url目標[url=http://gougou.com/search?search=網(wǎng)頁;&id=24304]網(wǎng)頁[/url]地址,返回值gethttppage是目標[url=http://gougou.com/search?search=網(wǎng)頁;&id=24304]網(wǎng)頁[/url]的html[url=http://gougou.com/search?search=代碼;&id=24304]代碼[/url] [br] function gethttppage(url) [br] dim http [br] set http=server.createobject("msxml2.xmlhttp") [br] http.open "get",url,false [br] http.send() [br] if http.readystate<>4 then [br] exit function [br] end if [br] gethttppage=bytestobstr(http.responsebody,"gb2312") [br] set http=nothing [br] if err.number<>0 then err.clear [br] end function [br] [br] '2、轉(zhuǎn)換亂瑪,直接用xmlhttp調(diào)用有中文字符的[url=http://gougou.com/search?search=網(wǎng)頁;&id=24304]網(wǎng)頁[/url]得到的將是亂瑪,可以通過adodb.stream組件進行轉(zhuǎn)換 [br] function bytestobstr(body,cset) [br] dim objstream [br] set objstream = server.createobject("adodb.stream") [br] objstream.type = 1 [br] objstream.mode =3 [br] objstream.open [br] objstream.write body [br] objstream.position = 0 [br] objstream.type = 2 [br] objstream.charset = cset [br] bytestobstr = objstream.readtext [br] objstream.close [br] set objstream = nothing [br] end function [br] [br] [br] [br] [br] '下面試著調(diào)用http://3doing.com/earticle/的html內(nèi)容 [br] dim url,html [br] url="http://3doing.com/earticle/" [br] html = gethttppage(url) [br] response.write html [br] %-> [/align]

該文章在 2010/6/27 17:24:56 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點晴ERP是一款針對中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國內(nèi)大量中小企業(yè)的青睞。
點晴PMS碼頭管理系統(tǒng)主要針對港口碼頭集裝箱與散貨日常運作、調(diào)度、堆場、車隊、財務(wù)費用、相關(guān)報表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點,圍繞調(diào)度、堆場作業(yè)而開發(fā)的。集技術(shù)的先進性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點晴WMS倉儲管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購管理,倉儲管理,倉庫管理,保質(zhì)期管理,貨位管理,庫位管理,生產(chǎn)管理,WMS管理系統(tǒng),標簽打印,條形碼,二維碼管理,批號管理軟件。
點晴免費OA是一款軟件和通用服務(wù)都免費,不限功能、不限時間、不限用戶的免費OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved