geoip_db_avail
geoip_db_get_all_info
GeoIP Funkcje
PHP Manual

# geoip_db_filename

(PECL geoip >= 1.0.1)

geoip_db_filename — Returns the filename of the corresponding GeoIP Database

### Opis

string geoip_db_filename ( int `$database` )

The geoip_db_filename() function returns the filename of the corresponding GeoIP Database.

It does not indicate if the file exists or not on disk, only where the library is looking for the database.

### Parametry

`database`

  The database type as an integer. You can use the various constants defined with this extension (ie: GEOIP_*_EDITION).

### Zwracane wartości

Returns the filename of the corresponding database, or `NULL` on error.

### Przykłady

Przykład #1 A geoip_db_filename() example

This will output the filename of the corresponding database.

`<?php
print geoip_db_filename(GEOIP_COUNTRY_EDITION);
?>`

Powyższy przykład wyświetli:

    /usr/share/GeoIP/GeoIP.dat

geoip_db_avail
geoip_db_get_all_info
GeoIP Funkcje
PHP Manual