PHP Classes

NetCheck() $networks parameter

Recommend this page to a friend!

      XIP Class  >  All threads  >  NetCheck() $networks parameter  >  (Un) Subscribe thread alerts  
Subject:NetCheck() $networks parameter
Summary:how does the $networks parameter work and what does it mean?
Date:2006-03-11 18:39:44
Update:2006-03-12 09:58:00

  1. NetCheck() $networks parameter   Reply   Report abuse  
Picture of Schnaaf Schnaaf - 2006-03-11 18:39:44
The XIP class returns as my ipaddress

I try to use NetCheck to check if I'm a user thats connected using an ip in the range of untill What should the $networks parameter of NetCheck() be?

  2. Re: NetCheck() $networks parameter   Reply   Report abuse  
Picture of Volkan Küçükçakar Volkan Küçükçakar - 2006-03-12 09:58:00 - In reply to message 1 from Schnaaf

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 to; mask must be

So, networks parameter should be
(BTW, it should be if you prefer short snytax...)


if ($XIP->NetCheck($ip,"")) echo "YES IN RANGE !";