GEOIP_NETSPEEDCELL_BY_NAME(3) 1 GEOIP_NETSPEEDCELL_BY_NAME(3)geoip_netspeedcell_by_name - Get the Internet connection speedSYNOPSIS
string geoip_netspeedcell_by_name (string $hostname)
DESCRIPTION
The geoip_netspeedcell_by_name(3) function will return the Internet connection type and speed corresponding to a hostname or an IP
address.
This function is only available if using GeoIP Library version 1.4.8 or newer.
This function is currently only available to users who have bought a commercial GeoIP NetSpeedCell Edition. A warning will be issued if
the proper database cannot be located.
The return value is a string, common values are:
o Cable/DSL
o Dialup
o Cellular
o Corporate
PARAMETERS
o $hostname
- The hostname or IP address.
RETURN VALUES
Returns the connection speed on success, or FALSE if the address cannot be found in the database.
EXAMPLES
Example #1
A geoip_netspeedcell_by_name(3) example
This will output the connection speed of the host example.com.
<?php
$netspeed = geoip_netspeedcell_by_name('www.example.com');
if ($netspeed) {
echo 'The connection type is: '. $netspeed;
}
?>
The above example will output:
The connection type is: Corporate
PHP Documentation Group GEOIP_NETSPEEDCELL_BY_NAME(3)
Check Out this Related Man Page
GEOIP_COUNTRY_CODE3_BY_NAME(3) 1 GEOIP_COUNTRY_CODE3_BY_NAME(3)geoip_country_code3_by_name - Get the three letter country codeSYNOPSIS
string geoip_country_code3_by_name (string $hostname)
DESCRIPTION
The geoip_country_code3_by_name(3) function will return the three letter country code corresponding to a hostname or an IP address.
PARAMETERS
o $hostname
- The hostname or IP address whose location is to be looked-up.
RETURN VALUES
Returns the three letter country code on success, or FALSE if the address cannot be found in the database.
EXAMPLES
Example #1
A geoip_country_code3_by_name(3) example
This will print where the host example.com is located.
<?php
$country = geoip_country_code3_by_name('www.example.com');
if ($country) {
echo 'This host is located in: ' . $country;
}
?>
The above example will output:
This host is located in: USA
SEE ALSO geoip_country_code_by_name(3), geoip_country_name_by_name(3).
PHP Documentation Group GEOIP_COUNTRY_CODE3_BY_NAME(3)
There is a small company with 3 locations in Idaho. Currently they are using UNIX with multiplexors from 10 years ago. They would like to speed up their downloads and connection speeds but don't want to pay more than they are paying right now. They currently pay $200/mo. The main office is in... (4 Replies)
A buddy of mine bought an older RS/6000 CAD workstation runing AIX to learn on, and had me put it on his LAN at home. I used smit to change the hostname/IP. After a reboot I try to login, and get a message saying that DTMessage cannot start, and gives a changed hostname as one of the possible... (3 Replies)
I'm brand new to this forum AND Unix. For obvious reasons. I don't know much at all. I'm 14 and i just got my first UNIX SPARCstation5 SUN computer. Something like that. i set up Solaris 9.1(With the help from my dad), now that i've gotten pertty much everything settled, i would like to route my... (8 Replies)
I'm trying to make a transition from linux to unix, but one of the major hang ups is my networked internet connection.
(1) Cable Internet (Adelphia)
(2) Modem -> Cat5
(3) Cat5 -> D-Link Router
(4) D-Link Router -> Cat5
(5) Cat5 -> D-Link 10/100 Ethernet/USB Adapter
On boot it says it sees... (1 Reply)
Hi,
I am using VMWARE and when I have the network connection set to NAT and the VM set to DHCP I get internet connection. But when I set the connection to BRIDGED and assign a static IP address I loose internet connection. I have used netconfig to manually assign the IP Address, GATEWAY, and... (5 Replies)
I am using SUSE OS and want to check internet connection...
I have tried:
ping -c3 google.com
The output i have got is:
Unknown host google.com
does it means that i do not have Internet connection??
Or please help me with any Command to find Internet connection?
Thanks for any help. (1 Reply)
My work has a Unix based system that currently has the IP address 192.9.2.25
We recently changed internet providers from DSL to Cable. By doing so, we had to get a new router (Belkin) since the DSL provider had a wireless router/modem in one. With the DSL setup, I was able to change the router's... (2 Replies)
Hi I am new to Linux. I installed 11.4, it went smooth and everything was working fine. After Update i rebooted the system and all of sudden internet connection is not working.
Could any one tell me how to check and change the settings.
Rgds
Kashch (1 Reply)
Things like this are teaching me a greater appreciation for network time...
The huge gap between the speed of a satellite connection and its tiny bandwidth allowance means either being completely draconian or having to chide people to not abuse it all the time. We're somewhere inbetween, if a... (3 Replies)
Dear all,
Would you know how to measure the max speed of a WIFI connection between a router and a laptop for instance?
Many thanks for your help!
Regards, (3 Replies)