Category: PHP

PHP code get IP hostname

<?php $ip = gethostbyname(‘www.google.com’); echo “Resolution pour www.google.com: $ip”; echo “<br>”; $ip = gethostbyname(‘inet.vn’); echo “Resolution pour inet.vn: $ip”; ?>