Skip to content

API krisp_search_ex

JoungKyun Kim edited this page Jul 17, 2016 · 1 revision

SYNOPSIS

(stdClass object) KRISP::searchEx ((string) $host, (string) $table)
(stdClass object) krisp_search_ex ((krisp) $link, (string) $host, (string) $table)

$link

Return value of the krisp_open api. This argument is only required on Procedural style.

$host

Searching host or IP address

$table

Searching table on krisp database

DESCRIPTION

If you want to search your table that makes by you in krisp database, you can use this method.

Search on given table and returns network information about given host that includes network information, country information and ISP information.

RETURN VALUE

return stdClass object that include follow members:

stdClass Object
(
    [host] => naver.com
    [ip] => 125.209.222.141
    [start] => 125.209.192.0
    [end] => 125.209.255.255
    [netmask] => 255.255.192.0
    [network] => 125.209.192.0
    [broadcast] => 125.209.255.255
    [size] => 4
    [data] => Array
        (
            [0] => KR
            [1] => Korea, Republic of
            [2] => NHN-NET
            [3] => 네이버비즈니스플랫폼 주식회사
        )
)

EXAMPLE

Object oriented style

<?php
$kr = new KRISP;
$r = $kr->searchEx ('naver.com', 'krisp');
print_r ($r);
$kr->close ();
?>

Procedural style

<?php
if ( ($kr = krisp_open (null, $error)) === false ) {
    echo "ERROR: {$error}\n";
    exit (1);
}
$r = krisp_search_ex ($rk, 'naver.com', 'krisp');
print_r ($r);
krisp_close ($kr);
?>

See Also

KRISP::__construct, KRISP::close, KRISP::search, KRISP::mtimeInterval, KRISP::debug

Clone this wiki locally