Bonjour,
J'utilise la fonction suivante depuis plusieurs mois :
$geocode=@file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng='.$lat.','.$lng.'&language=fr&sensor=false');
et voici que depuis 2 jours j'ai le message suivant :
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
En faisant des recherches sur internet j'ai pu voir que le probleme pourrait etre resolu avec la fonction suivante :
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
Par contre je n'ai aucune idee de comment l'inserer dans mon php .
Quelque peut-il m'aider?
Merci
Partager