Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>
- ip wyliczarka</title>
- <meta charset=utf-8 />
- </head>
- <body>
- <?php
- $adres = "192.168.8.4";
- $maska = "255.255.255.0";
- list ($aj, $ad, $at, $ac) = explode (". ", $adres);
- $binaj = decbin[$aj]
- $binad = decbin[$ad]
- $binat = decbin[$at]
- $binac = decbin[$ac]
- list ($mj, $md, $mt, $mc) = explode (". ", $adres);
- $binmj = decbin[$mj]
- $binmd = decbin[$md]
- $binmt = decbin[$mt]
- $binmc = decbin[$mc]
- echo = decbin
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement