hi,

while using ipman php script and come accross this problem...

function ip_mask_valid($mask)
{
   $maskroot = (int)sqrt(abs(ip2long($mask)));
   return ( (float)$maskroot == sqrt(abs(ip2long($mask))) );
}

this function is not returning true/successfull output when say given
255.255.254.0 netmask. pls assist.

rgds,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to