deville_debonair Posted July 21, 2011 Share Posted July 21, 2011 I'm suppose to retrieve some XML data from an HTTPS URL, but I get the following warnings: Warning: simplexml_load_file() [function.simplexml-load-file]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\xampp\htdocs\hnp\auto-create-map.php on line 270 Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "https://maps.googleapis.com/maps/api/place/search/xml?location=47.4872646,-0.5506867&radius=100&types=&sensor=false&key=AIzaSyD3jfeMZK1SWfRFDgMfxn_zrGRSjE7S8Vg" in C:\xampp\htdocs\hnp\auto-create-map.php on line 270 url not loading Here's my code: function fGooglePlaces($place_name,$latitude,$longitude,$type) { $key = "AIzaSyD3jfeMZK1SWfRFDgMfxn_zrGRSjE7S8Vg"; $google_places_url = "https://maps.googleapis.com/maps/api/place/search/xml?location=".$latitude.",".$longitude."&radius=100&types=".$type."&sensor=false&key=".$key.""; $xml = simplexml_load_file($google_places_url) or die("url not loading"); } Link to comment https://forums.phpfreaks.com/topic/242515-i-need-help-on-retrieving-xml-data-from-an-https-url/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.