<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title></title> </head> <body> <h1 style="font-weight: bold;">PHP subnet calculator</h1> The original code was written by Raymond Ferguson , so all credits goes to him .<br> I made a few modifications on the code , now it is also compatible with PHP >= 5.3 .<br> <br> Note :<br> Although this script isn't perfect , it can help out to quickly calculate subnet-shemas ( number of hosts , broadcast domain , network id ) .<br> Bugs : Even if you try to resolve a Class C with an CIDR lower than 24 , let say 18 , it will calculate output .<br> <br> </body> </html>