192.29.22 <http://192.29.22.0/> is constant.  0 to 225 is not.

Make an array? append 0->225 on the end of 192.29.22 and then do your
checks/show the list of what's available?

~Todd

On Nov 5, 2007 9:44 AM, Ben Nadel <[EMAIL PROTECTED]> wrote:

> Robert,
>
> I don't know how to do this offhand, but you can convert IP addresses to
> a single big integer number. What you could do is figure out the start
> IP and end IP numbers, then do a simple FOR loop. For each loop
> iteration, you could take that number and convert it back to an IP
> address and check it. Not 100% how that would work, but maybe this can
> point you in a good direction.
>
> ......................
> Ben Nadel
> Certified Advanced ColdFusion MX7 Developer
> www.bennadel.com
>
> Need ColdFusion Help?
> www.bennadel.com/ask-ben/
>
> -----Original Message-----
> From: Orlini, Robert [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 05, 2007 9:14 AM
> To: CF-Talk
> Subject: list help
>
> I would like to create a list of IP addresses, let's say, 192.29.22.0 to
> 192.29.22.255 and then with the list of IPs I already have of valid
> users in the same range, search through and find ones that don't match
> the range.
>
> For example, I would like the code to search through 192.29.22.0 to
> 192.29.22.255 and match IPs I have within this range and then list out
> IPs that are not there. If I have IP 192.29.22.122 in my list it should
> find a match within the range and do nothing, but if my list does not
> have IP 192.29.22.100 then it should flag this IP as available.
>
> Is there an easy way to do this without typing in the whole 192.29.22.0
> to 192.29.22.255 range? Do I use a list function?
>
> Thanks.
>
> Robert O.
> HWW
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292653
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to