解析ASP檢查網(wǎng)站鏈接是否正常的函數(shù)_ASP教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
推薦:ASP教程之a(chǎn)sp制作常見flash新聞圖片輪換代碼這是一個(gè)正常的網(wǎng)頁文件 html head metahttp-equiv=Content-Typecontent=text/html;charset=gb2312/ title 新聞圖片輪換 /title /head body !--#Includefile=diaoyong.asp-- /body /html 任何網(wǎng)頁只要調(diào)用下面這個(gè)文件(diaoyong.asp)就可以了,所用f
| <% Function urlChk(sUrl) on error resume next Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP") xmlHttp.open "GET",sUrl,false xmlHttp.send if xmlHttp.Status <> 200 then urlChk=false else urlChk=true end if End Function sUrl=http://www.code-123.com if urlChk(sUrl) then response.write(sUrl&"(可以正常訪問!)") else response.write(sUrl&"(頁面打開錯(cuò)誤!)") end if %> |
分享:如何用asp程序處理數(shù)據(jù)庫被掛馬的問題數(shù)據(jù)庫被掛馬后很多人不知怎么處理,或處理的不完全,導(dǎo)致網(wǎng)頁打開后仍有木馬,本文介紹一種比較好的處理辦法,供大家參考。 第一步 :為現(xiàn)有數(shù)據(jù)庫做好備份。 第二步 :執(zhí)行如下ASP文件,就可以去掉數(shù)據(jù)庫當(dāng)中的JS木馬。(注:conn.asp從略) ’這里放入JS木
相關(guān)ASP教程:
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁模板:ASP內(nèi)建對象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無組件分頁實(shí)現(xiàn)思路及代碼
- 相關(guān)鏈接:
- 教程說明:
ASP教程-解析ASP檢查網(wǎng)站鏈接是否正常的函數(shù)
。