hi i tried to get google coordinates using a php script connected with a mysql table it works but many (about 10%) of the requests generates an INVALID_REQUEST response. the same url in a browser generates correct xml ...
the core of the script is... --- $ggu_indirizzo = "https://maps.googleapis.com/maps/api/geocode/xml?address="; $ggu_key = "&key=myapikey"; $ggu_url = $ggu_indirizzo . $indirizzo . $ggu_key; sleep(6); $xml = simplexml_load_file($google_url) or die("url not loading"); ... then i decode xml and this part works properly --- the generated $ggu_url (https://...) copied and pasted in chrome generates a correct xml so ... why in chrome it works and it sometimes doesn't work in the script? where is my mistake? thnx for replies -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at http://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.