解析ASP檢查網站鏈接是否正常的函數_ASP教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!

      推薦:ASP教程之asp制作常見flash新聞圖片輪換代碼
      這是一個正常的網頁文件 html head metahttp-equiv=Content-Typecontent=text/html;charset=gb2312/ title 新聞圖片輪換 /title /head body !--#Includefile=diaoyong.asp-- /body /html 任何網頁只要調用下面這個文件(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&"(頁面打開錯誤!)")
      end if
      %>
       

      分享:如何用asp程序處理數據庫被掛馬的問題
      數據庫被掛馬后很多人不知怎么處理,或處理的不完全,導致網頁打開后仍有木馬,本文介紹一種比較好的處理辦法,供大家參考。 第一步 :為現有數據庫做好備份。 第二步 :執行如下ASP文件,就可以去掉數據庫當中的JS木馬。(注:conn.asp從略) ’這里放入JS木

      來源:模板無憂//所屬分類:ASP教程/更新時間:2010-02-05
      相關ASP教程