I am using the command :
drupal_http_request('https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference='.$term['photo_reference'].'&sensor=true&key='.$GOOGLEPLACESAPIKEY);
to get the image on browser its opening image, but i want to get the url of image to store in database ,can some please tell me how to do it.I tried file_get_content()
but it also didn't worked.