Re: parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

From: Date: Thu, 08 Apr 2004 19:13:48 +0000
Subject: Re: parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182893@lists.php.net to get a copy of this message
Galkov Vladimir wrote:
Two tables have diferent standarts to hold IP adresses: first: 045.012.001.002 003.000.123.231 123.230.101.080 second: 45.12.1.2 3.0.123.231 123.230.101.80
Are you aware that these don't mean the same thing? Leading zeroes mean an IP address quad is in octal. If you enter "045.012.001.002" you're actually saying "37.10.1.2"...

« previous php.general (#182893) next »