Skip to content

mjbear/php-ip-addr-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PHP IP Address Math

A small piece of PHP code I put together as a proof-of-concept for a work colleague.

By using ip2long and long2ip functions along with bitwise operators it was possible to eliminate an extra input field from the HTML form since the the IPv4 gateway was supposed to always be the first address.

(The joys of custom configuration templating before other frameworks were wildly popular... 😅)

About

PHP IP address math using bitwise operators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages