212 Posted April 20, 2007 Share Posted April 20, 2007 Hi all I need to generate ip mask list from list with ip ranges such as ..... I have list with this 62.213.0.0 - 62.213.127.255 62.217.160.0 - 62.217.191.255 62.231.0.0 - 62.231.31.255 62.231.160.0 - 62.231.191.255 77.34.0.0 - 77.35.255.255 77.37.128.0 - 77.37.255.255 77.39.0.0 - 77.39.127.255 77.40.0.0 - 77.40.127.255 77.41.0.0 - 77.41.255.255 77.43.128.0 - 77.43.255.255 77.45.128.0 - 77.45.255.255 77.50.0.0 - 77.51.255.255 77.66.128.0 - 77.66.255.255 needed to generate ip mask list like this 63.213.0.* 63.213.1.* 63.213.2.* ...... 77.66.254.* 77.66.255.* is there a way to make it?? May be in php or win soft?? Link to comment https://forums.phpfreaks.com/topic/47872-ip-range-generator/ Share on other sites More sharing options...
taith Posted April 20, 2007 Share Posted April 20, 2007 function mask_ip($ip){ return substr($ip, 0, strpos($ip, strrchr($ip, "."))).'.*'; } Link to comment https://forums.phpfreaks.com/topic/47872-ip-range-generator/#findComment-233888 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.