Re: Ip address as 32bit int?

From: Date: Fri, 22 Nov 2002 12:12:04 +0000
Subject: Re: Ip address as 32bit int?
Groups: php.general 
Request: Send a blank email to php-general+get-125594@lists.php.net to get a copy of this message
In MySQL (and others?) you can use these two functions: INET_NTOA(expr) INET_ATON(expr) Regards Joakim ----- Original Message ----- From: "Noodle Snacks" <webmaster@tececo.com> To: <php-general@lists.php.net> Sent: Friday, November 22, 2002 10:13 AM Subject: [PHP] Ip address as 32bit int? Is it easy enough to change a formated IP addy (eg 192.168.0.1) to the 32bit unsigned int that computers use? the reason I ask is because it is alot more efficient space wise in a db to be storing a 32bit number rather that a char or varchar field. Or am I going to run into trouble because all ints are signed in PHP? -- JJ Harrison lizner2002@yahoo.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#125594) next »