Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.