Autor Zpráva
blizz_boz
Profil
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
Áno - zmenou nastavenia v php.ini
pEeLL
Profil
blizz_boz
zkus se zeptat na hostingu. Taky jsem to mel omezene a stacilo napsat a ihned mi to povolily.

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0