WP-Webrtc2 plugin

webrtc2-ip-info.php

Description: Takes the IP of the visitor. Returns an array of information about IP.

PHP version 8.0.1

Tags
category

module

author

Oleg Klenitsky klenitskiy.oleg@mail.ru

version
1.7.3
license

GPLv2 or later

filesource

Table of Contents

Functions

webrtc2_who_is()  : array<string|int, mixed>
Select name of WHO-IS provider.
webrtc2_ip_api()  : array<string|int, mixed>
Retrieve ip information from the provider IP_API.
webrtc2_ip_info()  : array<string|int, mixed>
Retrieve ip information from the provider IP_info.
webrtc2_sx_geo()  : array<string|int, mixed>
Retrieve ip information from the provider SxGeo.
webrtc2_geobytes()  : array<string|int, mixed>
Retrieve ip information from the provider Geobytes.
webrtc2_country_name()  : string
Retrieve information of country of visitor.
webrtc2_getClosestTimezone()  : string
Attempts to find the closest timezone by coordinates.

Functions

webrtc2_who_is()

Select name of WHO-IS provider.

webrtc2_who_is(string $ip_or_dns, string $who_is) : array<string|int, mixed>
Parameters
$ip_or_dns : string

IP or DNS of server.

$who_is : string

Name of who is provider.

Return values
array<string|int, mixed>

webrtc2_ip_api()

Retrieve ip information from the provider IP_API.

webrtc2_ip_api(string $user_ip) : array<string|int, mixed>
Parameters
$user_ip : string

User ip.

Return values
array<string|int, mixed>

In format json.

webrtc2_ip_info()

Retrieve ip information from the provider IP_info.

webrtc2_ip_info(string $user_ip) : array<string|int, mixed>
Parameters
$user_ip : string

User ip.

Return values
array<string|int, mixed>

In format json.

webrtc2_sx_geo()

Retrieve ip information from the provider SxGeo.

webrtc2_sx_geo(string $user_ip) : array<string|int, mixed>
Parameters
$user_ip : string

User ip.

Return values
array<string|int, mixed>

In format json.

webrtc2_geobytes()

Retrieve ip information from the provider Geobytes.

webrtc2_geobytes(string $user_ip) : array<string|int, mixed>
Parameters
$user_ip : string

User ip.

Return values
array<string|int, mixed>

In format json.

webrtc2_country_name()

Retrieve information of country of visitor.

webrtc2_country_name(string $country_code) : string
Parameters
$country_code : string

Country code.

Return values
string

User country name.

webrtc2_getClosestTimezone()

Attempts to find the closest timezone by coordinates.

webrtc2_getClosestTimezone(string $lat, string $lon) : string
Parameters
$lat : string

Latitude.

$lon : string

Longitude.

Return values
string

Timezone.


        
On this page

Search results