file_get_contents-连接超时 [英] file_get_contents - Connection timed out
本文介绍了file_get_contents-连接超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<?php
$a = file_get_contents('http://www.google.com');
echo $
浏览器为什么返回此错误?
Why is the browser returning this error?
Warning: file_get_contents(http://www.google.com) [function.file-get-contents]: failed to open stream: Connection timed out in /home/test.php on line 2
推荐答案
例如,由于防火墙的限制,您的服务器很可能无法连接到外部资源.
Mostly probably your server cannot connect to an external resource, for example, because of firewall restrictions.
这篇关于file_get_contents-连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文