PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

geoip_org_by_name> <geoip_id_by_name
Last updated: Fri, 10 Oct 2008

view this page in

geoip_isp_by_name

(No version information available, might be only in CVS)

geoip_isp_by_nameインターネットサービスプロバイダ (ISP) 名を取得する

説明

string geoip_isp_by_name ( string $hostname )

geoip_isp_by_name() 関数は、 IP アドレスに対応するインターネットサービスプロバイダ (ISP) 名を返します。

現在この関数を使用できるのは、商用の GeoIP ISP Edition を購入した人だけです。 適切なデータベースが見つからない場合には警告が発生します。

パラメータ

hostname

ホスト名あるいは IP アドレス。

返り値

成功した場合には ISP 名、 アドレスがデータベースで見つからない場合には FALSE を返します。

例1 geoip_isp_by_name() の例

これは、ホスト example.com の ISP 名を表示します。

<?php
$isp 
geoip_isp_by_name('www.example.com');
if (
$isp) {
    echo 
'This host IP is from ISP: ' $isp;
}
?>

上の例の出力は以下となります。

This host IP is allocated to: ICANN c/o Internet Assigned Numbers Authority



add a note add a note User Contributed Notes
geoip_isp_by_name
There are no user contributed notes for this page.

geoip_org_by_name> <geoip_id_by_name
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites