我使用了以下代码。
$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行
发布于 2011-08-25 17:46:39
DNS allow_url_fopen
中的防火墙检查设置
https://stackoverflow.com/questions/7188161
复制相似问题