I am using fopen to retreive the contents of a URL. It works on http URLs but not https URLs
Herkes neden görebilirsiniz?
<?php
//this works fine
echo ("<br><br>url 1 is ".OutputURL("http://nuenergy.acornsoftware.com.au/staff/interface/index.php"));
//returns nothing
echo ("<br><br>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;
}
//
?>