Hi
We have developed a pt function to retrieve the address of a place
compared to a coordinated via http req
This feature has functioned for two weeks and now we have this error
message.
Our work is valid for the rest.
I tested this script on the last 3 fields with the key-responds to the
field -> same problem
If I open another url ue no problem.
***********************************************
Warning: file(http://maps.google.com/maps/geo?q=10+rue+bretonneau
+37000+tours
+fr&output=csv&oe=utf8&sensor=false&key=ABQIAAAAuAiO8f4ICtfqjSo2giSEyxSh8LHfDz-
vz5UXw5wNytGOhoqGVBSDZ9ml3pNa_jlciuTIdUl3CQXOPQ) [function.file]:
failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /
homez.18/mondialfg/www/tracker/test.php on line 2
***********************************************
In localhost no problem!
//////////////////////////////////////////////////////////////////////////////////
Here is the function:
Voici la fonction :
function recherche ($lat,$long)
{
global $cc ;
//recherche de l'adresse
if (!$fp = fopen("http://maps.google.com/maps/geo?q=$lat,
$long&output=csv&oe=utf8&sensor=false&key=ABQIAAAAuAiO8f4ICtfqjSo2giSEyxSh8LHfDz-
vz5UXw5wNytGOhoqGVBSDZ9ml3pNa_jlciuTIdUl3CQXOPQ","r")) {
echo "Echec de l'ouverture du fichier";
exit;
}
else {
while(!feof($fp))
{
// On récupère une ligne
$Ligne = fgets($fp,255);
$divis = explode('"',$Ligne);
$cc = $divis[1];
}
fclose($fp); // On ferme le fichier
}
return $cc;
}
///////////////////////////////////////////////////////////////////////////////////
How to retrieve just the string if I can not open the file?
Merci d'avance
Stéphane
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.