Function chku(murl) on error resume next Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP") xmlHttp.open "GET",murl,false xmlHttp.send if xmlHttp.Status <> 200 then chku=false else chku=true end if End Function |
<% url=request.querystring("u") Function chku(murl) on error resume next Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP") xmlHttp.open "GET",murl,false xmlHttp.send if xmlHttp.Status <> 200 then chku=false else chku=true end if End Function if chku(url) then response.write(url&"(鏈接正常)") else response.write(url&"(掉鏈、壞鏈、死鏈)") end if %> |
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答!! 點(diǎn)擊進(jìn)入論壇