Warning : file() [function.file] : URL file-access is disabled in the server configuration in [...monsite]/htdocs/plugins/interdire_ip/exec/interdire_ip.php on line 113
Warning : file(http://api.hostip.info/get_html.php?ip=&position=true) [function.file] : failed to open stream : no suitable wrapper could be found in [...monsite]/htdocs/plugins/interdire_ip/exec/interdire_ip.php on line 113
Il me semble avoir configuré correctement.
Je reçois ce message dans l’interface du plugin :
Warning : file() [function.file] : URL file-access is disabled in the server configuration in [...monsite]/htdocs/plugins/interdire_ip/exec/interdire_ip.php on line 113
Warning : file(http://api.hostip.info/get_html.php?ip=&position=true) [function.file] : failed to open stream : no suitable wrapper could be found in [...monsite]/htdocs/plugins/interdire_ip/exec/interdire_ip.php on line 113
lignes 111-115 de ce fichier :
/*ou $no_ip=getenv("HTTP_X_FORWARDED_FOR") ;*/
$hostip= "http://api.hostip.info/get_html.php?ip=$no_ip"."&position=true" ;
$result = file($hostip) ;echo $ip," - " ; echo $result[0] ;echo $result[1] ;echo $result[2] ; echo $result[3] ;
echo fin_cadre_trait_couleur(true) ;
echo fin_page(true) ;