Cant open a https website with php and fopen

TristanM

New Member
I am using fopen to retreive the contents of a URL.It works on http URLs but not https URLsCan anyone see why??\[code\]<?php//this works fineecho ("<br><br>url 1 is ".OutputURL("http://nuenergy.acornsoftware.com.au/staff/interface/index.php"));//returns nothingecho ("<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;}//?>\[/code\]
 
Back
Top