Using PHP, how do I validate that a string is a valid IP?
Examples of valid strings:
$valid = ip2long($ip) !== false;