RE: [PHP] Ip Address to binary
| From: | Robert Covell | Date: | Wed, 12 Sep 2001 21:56:26 +0000 |
| Subject: | RE: [PHP] Ip Address to binary | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67087@lists.php.net to get a copy of this message | ||
You could use MySql's built in functions:
INET_NTOA()
INET_ATON()
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: rcovell@rolet.com
Phone: 816.210.7145
Fax: 816.753.1952
-----Original Message-----
From: Jason Bell [mailto:jbell@barkingrat.com]
Sent: Wednesday, September 12, 2001 4:30 PM
To: PHP Users
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