标签:
判断远程图片是否存在的asp技巧[ASP代码] function CheckURL(byval A_strUrl) set XMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") XMLHTTP.open "HEAD",A_strUrl,false XMLHTTP.send() CheckURL=(XMLHTTP.status=200) set XMLHTTP = nothing end function Dim imgurl imgurl="UploadFiles/2007829144940734.gif" if CheckURL(imgurl) then response.write "图片存在" else response.write "图片不存在" end if
标签:
原文地址:http://my.oschina.net/u/1266171/blog/523397