• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Unable to find the wrapper "https"错误的解决办法

php 搞代码 3年前 (2022-01-23) 23次浏览 已收录 0个评论

做手机号码查询功能时用到file_get_contents出现错误:

<code>Warning: file_get_contents(): Unable <span>to</span> find <span>the</span> wrapper <span>"https"</span> - did you forget <span>to</span> enable <span>it</span> when you configured PHP?</code>

这个错误分3种解决方案:

  • 1.windows下的PHP,只需要到php.ini中把extension=php_openssl.dll前面的;删掉,重启服务就可以了。
  • 2.linux下的PHP,就必须安装openssl模块,安装好了以后就可以访问了。
  • 3.如果服务器你不能修改配置的话,那么就使用curl函数来替代file_get_contents函数,当然不是简单的替换啊。还有相应的参数配置才能正常使用curl函数。

‘).a@本文来源gaodai$ma#com搞$代*码6网搞代gaodaima码ddClass(‘pre-numbering’).hide(); $(this).addClass(‘has-numbering’).parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('

  • ‘).text(i)); }; $numbering.fadeIn(1700); }); }); </script>

    以上就介绍了Unable to find the wrapper “https”错误的解决办法,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。


    搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
    转载请注明原文链接:Unable to find the wrapper "https"错误的解决办法
    喜欢 (0)
    [搞代码]
    分享 (0)
  • 发表我的评论
    取消评论

    表情 贴图 加粗 删除线 居中 斜体 签到

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址