thx!

-----Original Message-----
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 9:44 AM
To: CF-Talk
Subject: RE: list help


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






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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

Reply via email to