Re: Ip Address to binary

From: Date: Wed, 12 Sep 2001 21:38:22 +0000
Subject: Re: Ip Address to binary
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67086@lists.php.net to get a copy of this message
I want to add.... I have seen bindec() , and I think it's a cruel cruel joke for it to only work with 31 bits, given that ip4 addresses are 32 bits. :} ----- Original Message ----- From: "Jason Bell" <jbell@barkingrat.com> To: "PHP Users" <php-general@lists.php.net> Sent: Wednesday, September 12, 2001 2:29 PM Subject: [PHP] Ip Address to binary does anyone know of a way to convert an IP address to Binary using PHP? My plan is to store the IP address in MySQL so that I can manage a mass amount of IP subnets, and easily make sure I'm not assigning duplicate subnets. the best way I can think of is to use binary. any other ideas, thoughts or comments? Thanks! -Jason Bell

« previous php.general (#67086) next »