Written by Wim Godden's professional blog
/ Original link
on Dec. 12, 2021
First published on the Cu.be blog : link If you ever need to detect whether an IP address (let’s say 192.168.0.2) is inside a certain IP range/subnet (let’s say 192.168.0.0/24), you can use the following code in PHP : /** * Check IPv4 address is within a range * * @param string $ip A valid IPv4 add…
Written by Wim Godden's professional blog
/ Original link
on Jun. 29, 2016
It took a while to get it finished, but I finally managed to finish writing the changes for PHPCompatibility to include PHP 7.0 support. Thanks to financial support from the cool people at WPEngine, the complete set of sniffs for PHP 7.0 is now available on Github through the usual link. As always,…