just need some quick assistance with IP maninpulation in PHP such that given a base IP and a mask, I can compute the start IP of the range and the end IP.
Example:Given two fields in the form:
IP_BASE = 192.168.88.0
MASK = 24
I need it to come up with
$loweripaddress = 192.168.88.1
$upperipaddress = 192.168.88.255
I have a partial snippet below but Lower_IP and Upper_IP have to be filled in by the person doing the form. I am looking for a way that php can be able to complete this automatically. I also need them converted to decimal which i was able to figure out already.
$record -> setValue('Lower_Dec', $lowerdecimal);
$record -> setValue('Upper_Dec', $upperdecimal);
Thanks very much.