找回密码
 新建账号

[PHP] PHP Unable to find the wrapper "https"

[复制链接]
php 发表于 2015/7/15 16:11 | 显示全部楼层 |阅读模式
Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? 出现在使用file_get_contents()打开https链接时。

解决方案很简单,只要加载 php_openssl 扩展即可。

  • 打开 php.ini,
  • 搜索 openssl,
  • 找到 ;extension=php_openssl.dll,
  • 将最前面的分号;删除,
  • 保存 php.ini,
  • 重启服务器即可。

另外一种方法,是使用 cURL 代替 file_get_contents() 打开https链接。


手机版|轻松E站

GMT+8, 2024/4/25 14:40

快速回复 返回顶部 返回列表