11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoCHAPTER 16 • NETWORKING...}// Convert the addresses back to the dot-format representation and displayecho "Addressing Information: ";echo "";echo "IP Address: ". long2ip($ip)."";echo "Sub<strong>net</strong> Mask: ". long2ip($<strong>net</strong>mask)."";echo "Network Address: ". long2ip($na)."";echo "Broadcast Address: ". long2ip($ba)."";echo "Total Available Hosts: ".($ba - $na - 1)."";echo "Host Range: ". long2ip($na + 1)." - ".long2ip($ba - 1)."";echo "";Consider an example. If you supply 192.168.1.101 as the IP address and 255.255.255.0 as the sub<strong>net</strong>mask, you should see the output shown in Figure 16-2.347

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!