允许url fopen打开,但不能与file_get_contents一起使用

问题描述

当我查看pinfo页面时,我的allow_url_fopen已打开

enter image description here

但是当我尝试做

  $url = 'https://www.google.com/recaptcha/api/siteverify';
  $response = file_get_contents($url,false,$context);

我有警告

<b>Warning</b>:  file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in

我做错了什么?

感谢您的帮助

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)