佳木斯湛栽影视文化发展公司

主頁(yè) > 知識(shí)庫(kù) > asp下多個(gè)域名后綴同時(shí)查詢的域名查詢系統(tǒng)

asp下多個(gè)域名后綴同時(shí)查詢的域名查詢系統(tǒng)

熱門標(biāo)簽:阿里云 服務(wù)器配置 Mysql連接數(shù)設(shè)置 銀行業(yè)務(wù) Linux服務(wù)器 科大訊飛語(yǔ)音識(shí)別系統(tǒng) 電子圍欄 團(tuán)購(gòu)網(wǎng)站
寫的很簡(jiǎn)單,只是實(shí)現(xiàn)了功能

%
Function formaturl(yes)
 If mid(yes,5,1)>"" then
 yes1 = left(yes,3)
 yes2 = right(yes,cint(len(yes))-3)
 formaturl = yes1  "."  yes2
 else
 formaturl=yes
 end if
End Function 
'取得遠(yuǎn)程網(wǎng)頁(yè)二進(jìn)制源代碼
Function getBoy(url)
 'on error resume next
 Set objXml = Server.CreateObject("Microsoft.XmlHttp")
 with objXml
  .open "get",url,false,"",""
  .send
  getBoy = .responsebody
 end with
 getBoy = BytesToBstr(GetBoy,"GB2312")
 Set objXml = nothing 
end function

'處理二進(jìn)制流代碼
Function BytesToBstr(strBody,CodeBase)
        dim objStream
        set objStream = Server.CreateObject("Adodb.Stream")
        objStream.Type = 1
        objStream.Mode =3
        objStream.Open
        objStream.Write strBody
        objStream.Position = 0
        objStream.Type = 2
        objStream.Charset = CodeBase
        BytesToBstr = objStream.ReadText 
        objStream.Close
        set objStream = nothing
End Function
%>
未注冊(cè)的域名如下
%
'www.knowsky.com如果提交了查詢
If Request.Form("yes") > "" Then
 yes = replace(Request.Form("yes")," ","")  '去除復(fù)選框字符串中的空格
 yes = split(yes,",")  '實(shí)例化一個(gè)數(shù)組yes,將用逗號(hào)隔開的yes數(shù)組賦值給yes新數(shù)組

 For i = 0 to ubound(yes)   '遍歷數(shù)組循環(huán)開始
  url = "http://panda.www.net.cn/cgi-bin/Check.cgi?domain="Request.Form("domain")"ext="yes(i)
  wstr = getBoy(url)  '獲取查詢后的源代碼
  If instr(wstr,"未被注冊(cè)的域名") > 0 Then   '判斷是否為已經(jīng)注冊(cè)的域名
   Response.Write Request.Form("domain")"."formaturl(yes(i))"br>br>br>br>"  '列出未注冊(cè)的域名
  End If  
 Next
 response.Write "p>p>p>已注冊(cè)的域名如下:br>"
 For i = 0 to ubound(yes)   '遍歷數(shù)組循環(huán)開始
  url = "http://panda.www.net.cn/cgi-bin/Check.cgi?domain="Request.Form("domain")"ext="yes(i)
  wstr = getBoy(url)  '獲取查詢后的源代碼
  If instr(wstr,"已被注冊(cè)的域名") > 0 Then   '判斷是否為已經(jīng)注冊(cè)的域名
   Response.Write Request.Form("domain")"."formaturl(yes(i))"br>br>br>br>"  '列出已注冊(cè)的域名
  End If  
 Next

Else 

%>
form name="form1" method="post" action="">
  p>
    input name="domain" type="text" id="domain">
    input type="submit" name="Submit" value="查詢">
  /p>
  p>
    input name="yes" type="checkbox" id="yes" value="com"> 
    .com
    input name="yes" type="checkbox" id="yes" value="net">
.net 
input name="yes" type="checkbox" id="yes" value="org"> 
.org /p>
  p>
    input name="yes" type="checkbox" id="yes" value="comcn"> 
    .com.cn
    input name="yes" type="checkbox" id="yes" value="netcn"> 
  .net.cn 
  input name="yes" type="checkbox" id="yes" value="orgcn">
org.cn 
input name="yes" type="checkbox" id="yes" value="govcn"> 
gov.cn /p>
  p>
    input name="yes" type="checkbox" id="yes" value="info"> 
    .info
    input name="yes" type="checkbox" id="yes" value="biz">
.biz 
input name="yes" type="checkbox" id="yes" value="tv"> 
.tv 
input name="yes" type="checkbox" id="yes" value="cc"> 
.cc/p>
  p>
    input name="yes" type="checkbox" id="yes" value="cn"> 
    .cn 
    input name="yes" type="checkbox" id="yes" value="name">
.name  /p>
/form>
%
End If
%>

標(biāo)簽:大理 衢州 蚌埠 棗莊 萍鄉(xiāng) 江蘇 廣元 衡水

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《asp下多個(gè)域名后綴同時(shí)查詢的域名查詢系統(tǒng)》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    沙雅县| 侯马市| 临沭县| 武隆县| 祁阳县| 辉南县| 志丹县| 永福县| 杭锦后旗| 平泉县| 万盛区| 大同市| 五华县| 贵南县| 博客| 莲花县| 青州市| 淳安县| 息烽县| 阿拉善右旗| 申扎县| 越西县| 汕头市| 安多县| 云安县| 冕宁县| 潜江市| 徐州市| 连山| 白朗县| 华安县| 尚义县| 新密市| 嘉黎县| 建宁县| 津南区| 白城市| 芦山县| 香格里拉县| 邳州市| 小金县|