Last active
October 20, 2016 08:46
-
-
Save isratmir/52cf959be118843f6cf5d0c805954249 to your computer and use it in GitHub Desktop.
Server's ip address from PHP's CLI
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 | |
$host = gethostname(); | |
$ip = gethostbyname($host); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment