title: Cant open a https website with php and fopen
body: <p>I am using fopen to retreive the contents of a URL.
  It works on http URLs but not https URLs</p>
  
  <p>Can anyone see why??</p>
  
  <pre><code>&lt;?php
  
  //this works fine
  echo ("&lt;br&gt;&lt;br&gt;url 1 is ".OutputURL("http://nuenergy.acornsoftware.com.au/staff/interface/index.php"));
  
  //returns nothing
  echo ("&lt;br&gt;&lt;br&gt;url 2 is ".OutputURL("https://nuenergy.acornsoftware.com.au/staff/interface/index.php"));
  
  function OutputURL($url)
  {
    $handle = fopen($url, "r");
    $contents = stream_get_contents($handle);
    fclose($handle);
    return $contents;
  }
  //
  ?&gt;
  </code></pre>