a PHP Subnet calculator