function Dot2LongIP (IPaddr)

if (IPaddr == "") 
    return 0;
 else 


 $ips = explode(".", IPaddr);




return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536 + $ips[0]*16777216); 
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.