I Have a a few lines of code to display a map - it uses the api class.
I recently moved servers and probably the version of php is higher now
but the code now shows the map but if I  run the code again a few
seconds later it fails to display the map and gives the following
error.

Warning: file_get_contents(http://maps.google.com/maps/geo?&q=Costa
%20Blanca%2C&output=csv&key=ABQIAAAAunsLqRJha-d4X3HzV-FHmhS1DO-
Nze3V1Ti0o6Php6LwwF1sxxSsqZc_hf6zKvALslk3q2FE4B6W_g) [function.file-
get-contents]: failed to open stream: Connection timed out in /xxx/xxx/
xxx/googlemaps/GoogleMapAPI.class.php on line 1343

Seems to be that the file_get_contents does not work now for some
reason from a php program but will work from a browser

http://maps.google.com/maps/geo?&q=Costa%20Blanca%2C&output=csv&key=ABQIAAAAunsLqRJha-d4X3HzV-FHmhS1DO-Nze3V1Ti0o6Php6LwwF1sxxSsqZc_hf6zKvALslk3q2FE4B6W_g

In the browser I get - 200,6,19.2098910,-96.1866190 - works fine

Regards
           M

-- 
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.

Reply via email to