Adresse IP à partir de nom de host ou le nom host à partir de l’adresse IP

Author:


Download


<?php

$ip = "209.85.148.103";
$host = "www.google.com";

$ip_de_host = gethostbyaddr($ip);
$host_de_ip = gethostbyname($host);

echo "$ip correspond à :$ip_de_host<br/>";
echo "$host à l'adresse IP: $host_de_ip<br/>";
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


+ one = 5