Location: PHPKode > scripts > IP address checking > ip-address-checking/test.php
<?php
 require_once('IPAddressChecking.php');

// If your IP address is in this range then it prints IP Address is right
 $Obj=new IPAddressChecking("127.0.0.0-127.0.0.50");

	if ($Obj->checkIPorRange()) {
	print "IP Address is right";
	}
	else{
	print "IP address is not in right range";
	}

?>
Return current item: IP address checking