¡@

Home 

php Programming Glossary: subnet

Testing if a network in cidr notation overlaps another network

http://stackoverflow.com/questions/13608394/testing-if-a-network-in-cidr-notation-overlaps-another-network

const HOSTS_ALL 0x30 Properties to store base address and subnet mask as binary strings protected address protected mask Counter.. of dotted decimal CIDR and integers will be accepted subnet new IPv4Subnet '192.168.0.0 24' These methods will accept a.. methods will accept a string or another instance var_dump subnet contains '192.168.0.1' TRUE var_dump subnet contains '192.168.1.1'..

matching an IP to a CIDR mask in php5?

http://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php5

cidr_match IP '10.2.0.0 16' true print you're in the 10.2 subnet n solve for cidr_match it doesnt really have to be simple but.. If only using IPv4 use ip2long to convert the IPs and the subnet range into long integers convert the xx into a subnet mask do.. the subnet range into long integers convert the xx into a subnet mask do a bitwise 'and' i.e. ip mask ' and check that that 'result..