[COLOR=#000000][FONT=Times New Roman][FONT=verdana]I know how to convert an IP address into an integer… like so:
IP: 10.11.12.13
$a = 10
$b = 11
$c = 12
$d = 13
($a * 256 to the third) + ($b * 256 squared) + ($c * 256) + ($d) = the integer
or
($a * 16777216) + ($b * 65536) + ($c * 256) + ($d) = the integer
Now, how do you take the final integer and and convert it back to a regular ip address with decimals and all?