geoip_setup_custom_directory
(PECL geoip >= 1.1.0)
geoip_setup_custom_directory — Set a custom directory for the GeoIP database.
Description
void geoip_setup_custom_directory
( string
$path
)The geoip_setup_custom_directory() function will change the default directory of the GeoIP database. This is equivalent to changing geoip.custom_directory.
Parameters
-
path
-
The full path of where the GeoIP database is on disk.
Return Values
No value is returned.
Examples
Example #1 A geoip_setup_custom_directory() example
This will change the GeoIP default database path.
<?php
geoip_setup_custom_directory('/some/other/path');
print geoip_db_filename(GEOIP_COUNTRY_EDITION);
?>
The above example will output:
/some/other/path/GeoIP.dat
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Другие базовые расширения
- Geo IP Location
- geoip_asnum_by_name
- geoip_continent_code_by_name
- geoip_country_code_by_name
- geoip_country_code3_by_name
- geoip_country_name_by_name
- geoip_database_info
- geoip_db_avail
- geoip_db_filename
- geoip_db_get_all_info
- geoip_domain_by_name
- geoip_id_by_name
- geoip_isp_by_name
- geoip_netspeedcell_by_name
- geoip_org_by_name
- geoip_record_by_name
- geoip_region_by_name
- geoip_region_name_by_code
- geoip_setup_custom_directory
- geoip_time_zone_by_country_and_region
Коментарии
404 Not Found