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
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:
2 matches
Mail list logo