array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.geoip-setup-custom-directory.php', 1 => 'geoip_setup_custom_directory', ), 'up' => array ( 0 => 'ref.geoip.php', 1 => 'GeoIP İşlevleri', ), 'prev' => array ( 0 => 'function.geoip-region-name-by-code.php', 1 => 'geoip_region_name_by_code', ), 'next' => array ( 0 => 'function.geoip-time-zone-by-country-and-region.php', 1 => 'geoip_time_zone_by_country_and_region', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/geoip/functions/geoip-setup-custom-directory.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL geoip >= 1.1.0)
geoip_setup_custom_directory — Set a custom directory for the GeoIP database
The geoip_setup_custom_directory() function will change the default directory of the GeoIP database. This is equivalent to changing geoip.custom_directory.
path
The full path of where the GeoIP database is on disk.
Hiçbir değer dönmez.
Örnek 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);
?>
Yukarıdaki örneğin çıktısı:
/some/other/path/GeoIP.dat