Created
March 28, 2012 15:40
-
-
Save kieranajp/2227452 to your computer and use it in GitHub Desktop.
Random IP address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
long2ip(rand(0, "4294967295")); // random up to 255.255.255.255 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment