Revision 1 - Original post on June 16, 2007 @ 7:50am
[Download]
Demo
This is a function in PHP that will convert a decimal-dotted IP address into a simple decimal IP address. It converts each octet into its hexadecimal equivalent, creating a hex number, and converts that into a decimal number.
This function is great for validating IP addresses because you need not worry about octets and periods.