title: Error when loading external xml file with php via https : SSL3_GET_SERVER_CERTIFICATE
body: <p>I can't get a xml file to load.</p>
  
  <p>This code works great:</p>
  
  <pre><code>$url = 'http://www.w3schools.com/xml/note.xml';
  $xml = simplexml_load_file($url);
  print_r($xml);
  </code></pre>
  
  <p>But this one </p>
  
  <pre><code>$url = 'https://www.boardgamegeek.com/xmlapi2/thing?id=105551';
  $xml = simplexml_load_file($url);
  print_r($xml);
  </code></pre>
  
  <p>doesn't work. I get this error:</p>
  
  <blockquote>
    <p>Warning: simplexml_load_file(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /storage/content/59/113059/boardgamelevelup.com/public_html/index.php on line 19 Warning: simplexml_load_file(): Failed to enable crypto in /storage/content/59/113059/boardgamelevelup.com/public_html/index.php on line 19 Warning: simplexml_load_file(<a href="https://www.boardgamegeek.com/xmlapi2/thing?id=105551" rel="noreferrer">https://www.boardgamegeek.com/xmlapi2/thing?id=105551</a>): failed to open stream: operation failed in /storage/content/59/113059/boardgamelevelup.com/public_html/index.php on line 19 Warning: simplexml_load_file(): I/O warning : failed to load external entity "<a href="https://www.boardgamegeek.com/xmlapi2/thing?id=105551" rel="noreferrer">https://www.boardgamegeek.com/xmlapi2/thing?id=105551</a>" in /storage/content/59/113059/boardgamelevelup.com/public_html/index.php on line 19</p>
  </blockquote>
  
  <p>The xml file from boardgamegeek works on other sites. Should I use a different php code to load that xml file?</p>