Autor | Zpráva | ||
---|---|---|---|
blizz_boz Profil |
#1 · Zasláno: 21. 6. 2009, 12:52:05
potrebujem zistiť krajinu podľa IP adresy
mám na to tento kód: <?php $country = file_get_contents("http://api.hostip.info/country.php?ip={$_SERVER['REMOTE_ADDR']}"); problém je že my to vyhadzje toto: Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /domains1/do1618400/public/www_root/country.php on line 2 Warning: file_get_contents(http://api.hostip.info/country.php?ip=78.99.232.130) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /domains1/do1618400/public/www_root/country.php on line 2 http://ipremiere.eu/country.php dá sa to nejako obísť? |
||
Senky Profil |
#2 · Zasláno: 21. 6. 2009, 13:06:08
Áno - zmenou nastavenia v php.ini
|
||
pEeLL Profil |
#3 · Zasláno: 21. 6. 2009, 13:08:32
blizz_boz
zkus se zeptat na hostingu. Taky jsem to mel omezene a stacilo napsat a ihned mi to povolily. |
||
Časová prodleva: 15 let
|
0