PHP gethostbyaddr() İşlevi
Örnek
Basit bir gethostbyaddr() örneği:
<?php
$host = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
echo $host;
?>
Tanım ve Kullanım
gethostbyaddr() işlevi, belirli bir IP adresi için alan adını döndürür.
Sözdizimi
gethostbyaddr(ipaddress)
Parametre Değerleri
Parameter | Description |
---|---|
ipaddress | Required. Specifies an IP address |
Teknik detaylar
Geri dönüş değeri: | Başarıdaki ana bilgisayar adı. Hata durumunda IP adresi veya FALSE. |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Ağ Referansı