}\r
// if allow_url_fopen isn't active, we attempt to use our own http download functionality.\r
else {\r
+ $port = 80;\r
$parsedUrl = parse_url($httpUrl);\r
- $port = ($parsedUrl['scheme'] == 'https' ? 443 : 80);\r
$host = $parsedUrl['host'];\r
- $path = $parsedUrl['path'];\r
-\r
- $remoteFile = new RemoteFile(($parsedUrl['scheme'] == 'https' ? 'ssl://' : '').$host, $port, 30, $options); // the file to read.\r
+ $path = (isset($parsedUrl['path']) ? $parsedUrl['path'] : '/');\r
+ \r
+ $remoteFile = new RemoteFile($host, $port, 30, $options); // the file to read.\r
if (!isset($remoteFile)) {\r
$localFile->close();\r
unlink($newFileName);\r
return function_exists('apache_get_version');\r
}\r
}
+?>\r