ip2long and long2ip and a bit of bitwise logic is really all you need.
-Rasmus
On Fri, 31 May 2002, Chris Knipe wrote:
> Hi all,
>
> anyone know of any good pre-written classes or functions to work with IP
> address space?
>
> I'm looking for things which can verify correct notation of IP addre
Hi all,
anyone know of any good pre-written classes or functions to work with IP
address space?
I'm looking for things which can verify correct notation of IP addresses
(fine, that's easy enough), but also verify things like network addresses,
broadcast addresses, and work out subnet masks when
On Mon, 18 Mar 2002, Erik Price wrote:
> On Monday, March 18, 2002, at 04:07 PM, Charles Williams wrote:
>> So basically I guess I just need a way of, after retrieving the info
>> from the DB, splitting the IP (range(s)) apart and then comparing the
>> IP entered to those in the array(?) to verif
On Mon, 18 Mar 2002, Charles Williams wrote:
>> Ordinarily I would suggest CIDR subnets but the sample IP addresses you
>> provided do not comply - they seem to be random numbers. Is this because
>> you need to deal with arbitrary sets of IP addresses rather than valid
>> subnets, or because you w
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Charles Williams" <[EMAIL PROTECTED]>
Cc: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 10:12 PM
Subject: Re: [PHP] Working with IP addresses
> On Mon, 18 Mar 2002, Ch
On Monday, March 18, 2002, at 04:07 PM, Charles Williams wrote:
> The above a just a few examples. I need to be able to grab either the
> IP
> addresses or the ranges and verify that when an IP is entered at a later
> date and compared to the above types of previously saved data that the
> I
On Mon, 18 Mar 2002, Charles Williams wrote:
> There will be a form with a text box to allow IP address entries as follows:
>
> 192.168.5.195
> or
> 123.23.35.4 123.23.35.45 123.23.35.74
> or
> 123.4.34.1/123.4.34.255
> or
> 13.234.5.41/13.234.5.75 12.34.34.150/12.34.34.225
>
> The above a just
Hey all,
I find myself in need of working with IP addresses. However, the situation
is a bit strange.
There will be a form with a text box to allow IP address entries as follows:
192.168.5.195
or
123.23.35.4 123.23.35.45 123.23.35.74
or
123.4.34.1/123.4.34.255
or
13.234.5.41/13.234.5.75 12.34.
8 matches
Mail list logo