人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

新手初練:用ASP做一個域名查詢系統

新手初練:用ASP做一個域名查詢系統

更新時間:2022-07-14 文章作者:未知 信息來源:網絡 閱讀次數:

開發這樣一個域名查詢系統其實是一件很容易的事情,只要我們能夠讓使用者進行查詢后得出結果,看看自己輸入的域名是不是被別人占用了就可以,如果沒有被占用我們就可以自行去申請了。

<%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function GetBody(url)
on error resume next
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False, "", ""
.Send
GetBody = .ResponseBody
End With
Set Retrieval = Nothing
End Function

Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
%>
<%
if request("domain")<>"" then
'url="http://panda.www.net.cn/cgi-bin/Whois.cgi?domain="&request("domain")&"&"&request("root")&"=yes&work=whois&referer=http://panda.www.net.cn/cgi-bin/Check.cgi?domain="&request("domain")
url="http://panda.www.net.cn/cgi-bin/Check.cgi?domain="&request("domain")&"&ext="&request("root")
wstr=getHTTPPage(url)

'response.write Instr (wstr,"可以注冊")
if instr(lcase(wstr),"已被注冊的域名")>0 then
body="域名已經被注冊"
elseif instr(lcase(wstr),"未被注冊的域名")>0 then
body="域名未被注冊"
else
body="網絡延遲,請重新查找"
end if
end if
%>







域名查詢系統:<% if request("domain")>"" then response.Write(request("domain")&"."&request("root")&body) end if%>









www.







 












 

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 灵川县| 鄂托克前旗| 云龙县| 成武县| 平远县| 长寿区| 高安市| 安阳市| 河曲县| 芒康县| 华蓥市| 固阳县| 曲沃县| 柘城县| 得荣县| 南康市| 达孜县| 阿鲁科尔沁旗| 迭部县| 榆树市| 清水河县| 惠州市| 玉溪市| 元朗区| 翁牛特旗| 乌拉特后旗| 赤城县| 胶南市| 平江县| 长沙市| 潼南县| 泰州市| 长春市| 广河县| 布尔津县| 沾益县| 睢宁县| 申扎县| 灌云县| 库车县| 鹤峰县|