• PHP Video Tutorials

PHP - geoip_isp_by_name()



The geoip_isp_by_name() function can get an Internet Service Provider (ISP) name.

Syntax

string geoip_isp_by_name( string $hostname )

The geoip_isp_by_name() function can return the name of Internet Service Provider (ISP) that an IP has assigned to.

This function is currently available only to users who have bought a commercial GeoIP ISP Edition. A warning can be issued if a proper database can't be located.

The geoip_isp_by_name() function can return an ISP name on success, or false if the address can't be found in the database.

Example

<?php
   $isp = geoip_isp_by_name("www.tutorialspoint.com");
   if($isp) {
      echo "This host IP is from ISP: " . $isp;
   } 
?>
php_function_reference.htm
Advertisements