
Volkan Küçükçakar - 2006-03-12 09:58:00 -
In reply to message 1 from Schnaaf
Hi,
In general; $networks parameter must be written as IP/Mask format; there may be multiple entries separated with comma or new line.. (also can be array..) (very flexible :)
if you want to check ip is in the range of 192.168.253.0 to 192.168.253.255; mask must be 255.255.255.0
So, networks parameter should be 192.168.253.0/255.255.255.0
(BTW, it should be 192.168.253.0/24 if you prefer short snytax...)
example:
if ($XIP->NetCheck($ip,"192.168.253.0/255.255.255.0")) echo "YES IN RANGE !";