Created
October 20, 2014 02:51
-
-
Save IlyaPavlik/5e11919449fcebe4d7c7 to your computer and use it in GitHub Desktop.
Получение доменного имени по ip
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 | |
class DomainInfo | |
{ | |
public static function getDomainNameByIP($ip){ | |
return gethostbyaddr($ip); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment