I want to access google map api for reverse geocoding. I access the url using file_get_contents method.
$url = “http://maps.google.com/maps/geo?json&ll&ll=”.$lat.”,”.$long;
$data = file_get_contents($url);
And I got the value of $data as FALSE, From stack overflow I got the information that its due the configuration of php.ini file (allow_url_fopen is false in our web server)
I contacted the web server people but because of security isssue they didn’t ready to change the server configuration.
Is there any alternate way to access the url with out changing the server configuration?
Share your experiences ,knowledge ,Thanks
Does your server have the curl library installed? You could try that.
For example, you could try the following: