Встала задача: выводить в одном мониторинге с боку флаг страны из данного ip выводить город + желательно ширину и долготу + провайдера Какие базы есть? Где их брать? Как лучше реализовать такую тему? Заранее спасибо. Жду дельных советов и предложений опытных гуру ))
ога спс тока что сам неожидано натолкнулся )) скоро будут вопросы как её юзать из ПХП ))) Sergey89 спасибо за оперативность
http://ru2.php.net/manual/en/ref.geoip.php Код (Text): hosting(root):/home/440hz#>php -i | grep geo geoip geoip support => enabled geoip extension version => 1.0.3 geoip.custom_directory => no value => no value hosting(root):/home/440hz#>pkg_info | grep geo pecl-geoip-1.0.3 Map IP address to geographic places Код (Text): hosting(root):/home/440hz#>php -r " print geoip_database_info(GEOIP_COUNTRY_EDITION); " GEO-106FREE 20090201 Build 1 Copyright (c) 2007 MaxMind LLC All Rights Reserved Код (Text): hosting(root):/home/440hz#>php -r " print_r(geoip_record_by_name('440hz.ru')); " Array ( [country_code] => RU [country_code3] => RUS [country_name] => Russian Federation [region] => 66 [city] => Saint Petersburg [postal_code] => [latitude] => 59.894401550293 [longitude] => 30.264200210571 [dma_code] => 0 [area_code] => 0 ) hosting(root):/home/440hz#>php -r " print_r(geoip_record_by_name('php.ru')); " Array ( [country_code] => RU [country_code3] => RUS [country_name] => Russian Federation [region] => 66 [city] => Saint Petersburg [postal_code] => [latitude] => 59.894401550293 [longitude] => 30.264200210571 [dma_code] => 0 [area_code] => 0 ) hosting(root):/home/440hz#>php -r " print_r(geoip_record_by_name('google.com')); " Array ( [country_code] => US [country_code3] => USA [country_name] => United States [region] => CA [city] => Mountain View [postal_code] => 94043 [latitude] => 37.419200897217 [longitude] => -122.05740356445 [dma_code] => 0 [area_code] => 0 ) hosting(root):/home/440hz#>php -r " print_r(geoip_record_by_name('ya.ru')); " Array ( [country_code] => RU [country_code3] => RUS [country_name] => Russian Federation [region] => 48 [city] => Moscow [postal_code] => [latitude] => 55.752201080322 [longitude] => 37.615600585938 [dma_code] => 0 [area_code] => 0 ) hosting(root):/home/440hz#>php -r " print_r(geoip_record_by_name('www.com.ua')); " Array ( [country_code] => UA [country_code3] => UKR [country_name] => Ukraine [region] => 13 [city] => Kiev [postal_code] => [latitude] => 50.433300018311 [longitude] => 30.516700744629 [dma_code] => 0 [area_code] => 0 )