[Za-pm] IP's

Spike spikeh at mweb.co.za
Thu May 6 06:18:47 CDT 2004


Any body got any cool code to check if an IP is within a particular range?
I can check the four individual elements of the code with a series of if 
statements but there must be a more graceful way to do it.

if 196.2.49.19 is in the range 196.2.1.1 to 196.3.29.76 do something.


Spike Hodge

UNIX Programmer
M-Web Technology
021 596 8496
083 294 9593
Fax 0866721733


Click here and make M-Web your homepage
http://homepage.mweb.co.za  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/za-pm/attachments/20040506/5d5ffb6a/attachment.htm


More information about the Za-pm mailing list