Created
November 4, 2019 10:01
-
-
Save jakub-g/e48bf61faf000da06a24296ffabeb351 to your computer and use it in GitHub Desktop.
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 | |
$remote = @$_SERVER['REMOTE_ADDR']; | |
printf("%s\n", (($name = gethostbyaddr($remote)) !== false) ? $name : $remote); |
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 -S localhost:8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment