<?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"; }?>