首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用file_get_contents时出现警告

使用file_get_contents时出现警告
EN

Stack Overflow用户
提问于 2011-08-25 17:41:14
回答 1查看 439关注 0票数 3

我使用了以下代码。

$homepage = file_get_contents('http://www.google.co.in/');echo $homepage;

但是它会显示以下警告消息

警告: file_get_contents(http://www.google.co.in/)函数.file-get-contents:无法打开流: HTTP请求失败!在/home/web/cron/sample.php中的第47行

EN

回答 1

Stack Overflow用户

发布于 2011-08-25 17:46:39

DNS allow_url_fopen

  • Check settings.

  • Check
  1. php.ini

中的防火墙检查设置

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7188161

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档