Re: [PHP] PHP Class for IP CIDR notation

2003-06-06 Thread Mark
Here's a quick function of the top of my head. I'm not sure if x.x.0.x or x.0.x.x are valid IP addresses. Adjust as necessary. 255) { echo "First octet of IP address cannot exceed 255"; return false; } $ip_list[]=implode(".",$octet); } return $ip_list; } $arr=cidr("192.1

[PHP] PHP Class for IP CIDR notation

2003-06-05 Thread Rob Lacey
does anyone know of a class that is able to extrapolate a list of IPs given an address in cidr notation. I have used the Net::Netmask module in perl, so I was just wondering if there was a PHP equivalent. Thanks Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http: