Ando realizando un sitio y al montarlo me arroja estos errores
Warning: file_get_contents() [function.file-get-contents]: Couldn't resolve host name in /home/ucoxadvc/public_html/bezour/functions/functions_localization.php on line 36
Warning: file_get_contents(http://api.easyjquery.com/ips/?ip=19...1.90&full=true) [function.file-get-contents]: failed to open stream: operation failed in /home/ucoxadvc/public_html/bezour/functions/functions_localization.php on line 36
la linea 36 es
Código PHP:
$file = "./library/_cache/IP/".$ip;
if(!file_exists($file)) {
// request
$json = file_get_contents("http://api.easyjquery.com/ips/?ip=".$ip."&full=true");
$f = fopen($file,"w+");
fwrite($f,$json);
fclose($f);
} else {
$json = file_get_contents($file);
}
Gracias de antemano