总是提示错误:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known Warning: file_get_contents(http://www.baidu.com): failed to open stream: Resource temporarily unavailable
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known Warning: file_get_contents(http://www.baidu.com): failed to open stream: Resource temporarily unavailable
$content=file_get_contents("http://www.baidu.com");
$fp=fopen('index.html','w');
fwrite($fp,$content);
fclose($fp);
?>
原代码如上,请问file_get_contents为什么会提示那样的错误信息呢?
http://bugs.php.net/bug.php?id=11058