This commit is contained in:
2023-05-24 11:03:29 +02:00
parent 9ec952236f
commit 8246d30c9a

View File

@@ -189,6 +189,7 @@ function ip2hostname($ip) {
return $hostname;
}
function hostname2ip($hostname) {
echo gethostbynamel($hostname);
$ip = implode(', ', gethostbynamel($hostname));
return $ip;
}