作用:把IP地址转为长整型
<%
Function CLngIP(ByVal asNewIP)
Dim lnResults
Dim lnIndex
Dim lnIpAry
lnIpAry = Split(asNewIP, “.”, 4)
For lnIndex = 0 To 3
If Not lnIndex = 3 Then
lnIpAry(lnIndex) = lnIpAry(lnIndex) * (256 ^ (3 – lnIn来源gaodai$ma#com搞$$代**码网dex))
End If
lnResults = lnResults + lnIpAry(lnIndex)
Next
CLngIP = lnResults
End Function
%>
以上就是ASP常用函数:CLngIP()的详细内容,更多请关注gaodaima搞代码网其它相关文章!