i want to get the address from latitude and longitude but i want to do using curl. Without curl is working in localhost fine. But when i run in server it.
showing error this error :-
file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0.
So decided,, now i have to get the address using curl .
Can anyone help me how to acheive this functionality Here i have tried :-
$latitude= 30.9003971459;
$longitude= 77.0072737194;
$url = 'https://maps.google.com/maps/api/geocode/json?latlng='.trim($latitude).','.trim($longitude).'&key=XXXXX';
$curl = curl_init();