Jump to content

I need help on retrieving XML data from an HTTPS URL


Recommended Posts

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");
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.