This is a PHP driven web application which accepts user input of an IP address and a subnet mask, and then returns the network address, broadcast address and range of usable IP addresses based on the input.
Be the first to post a text review of WebGnuru Simple Subnet Calculator. Rate and review a project by clicking thumbs up or thumbs down in the right column.
NOTES 1.1 Error checking was added for all illegal characters and values. The subnet mask can now be entered in CIDR notation. The user input field is now one single field which is converted to an array later. The next revision will include a function for determining the available number of nodes within the given network. NOTES 1.0 This is version 1.0 of the WebGnuru Simple Subnet Calculator. This version relies heavily on the user inputting correct data. The calculator does not check for "illegal" subnet masks, illegal characters, or other illegal values. You could enter a subnet mask of "your mother". This application was written for many purposes: to learn more about PHP, to learn more about how subnet mask values are calculated, and to practice coding in an Object Oriented structure. The HTML portion of this application is written in valid XHTML 1.0 strict. The CSS is valid CSS2. There is some light weight javascript included for giving field focus and field hiliting, but it is by no means necessary to have JS enabled for this application to run in your browser. The JS is unobtrusive and gracefully degrading. The next version of this application will hopefully include: 1. Error checking for all illegal characters. 2. Error checking for all illegal values. 3. The ability to enter the subnet mask as a 'number of bits expression' (ie. 192.168.10.65/24). 4. A calculation for the number of nodes, less the network and broadcast addresses, that the network provides.
NOTES 1.1 Error checking was added for all illegal characters and values. The subnet mask can now be entered in CIDR notation. The user input field is now one single field which is converted to an array later. The next revision will include a function for determining the available number of nodes within the given network. NOTES 1.0 This is version 1.0 of the WebGnuru Simple Subnet Calculator. This version relies heavily on the user inputting correct data. The calculator does not check for "illegal" subnet masks, illegal characters, or other illegal values. You could enter a subnet mask of "your mother". This application was written for many purposes: to learn more about PHP, to learn more about how subnet mask values are calculated, and to practice coding in an Object Oriented structure. The HTML portion of this application is written in valid XHTML 1.0 strict. The CSS is valid CSS2. There is some light weight javascript included for giving field focus and field hiliting, but it is by no means necessary to have JS enabled for this application to run in your browser. The JS is unobtrusive and gracefully degrading. The next version of this application will hopefully include: 1. Error checking for all illegal characters. 2. Error checking for all illegal values. 3. The ability to enter the subnet mask as a 'number of bits expression' (ie. 192.168.10.65/24). 4. A calculation for the number of nodes, less the network and broadcast addresses, that the network provides.
Be the first person to add a text review.
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: