Php 使用https协议的Codeigniter文件\u get\u content()错误权限

Php 使用https协议的Codeigniter文件\u get\u content()错误权限,php,codeigniter,https,download,Php,Codeigniter,Https,Download,我使用codeigniter框架,在控制器中放入脚本,强制下载某个文件夹中的现有文本文件。连接使用HTTPS协议。当我单击从服务器下载文本文件时,出现了一个错误,如下所示: Message: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? Filename: cont

我使用codeigniter框架,在控制器中放入脚本,强制下载某个文件夹中的现有文本文件。连接使用HTTPS协议。当我单击从服务器下载文本文件时,出现了一个错误,如下所示:

Message: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
Filename: controllers/process.php
当我打印
“var_dump(stream_get_wrappers());”
时,会得到如下结果:

array(10) {
  [0]=>
  string(3) "php"
  [1]=>
  string(4) "file"
  [2]=>
  string(4) "glob"
  [3]=>
  string(4) "data"
  [4]=>
  string(4) "http"
  [5]=>
  string(3) "ftp"
  [6]=>
  string(13) "compress.zlib"
  [7]=>
  string(14) "compress.bzip2"
  [8]=>
  string(4) "phar"
  [9]=>
  string(3) "zip"
}
因此阵列中不存在https包装器

如何着手解决这个问题


谢谢您的建议…

也许您没有访问https协议的权限

试试这个


或者使用curl或sockets

确保启用了
php\u openssl.dll
php\u openssl.so

此网站上的快速搜索应该会帮助您:谢谢。如何使用它?使用https进行curl??我检查它,我重新编辑下面的问题,你可以看到当我尝试使用时发生了什么:var_dump(stream_get_wrappers());