<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?116</link>
<title><![CDATA[关于file_get_contents() 警告错误的解决方案]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Tue, 05 Jun 2007 04:02:30 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?116</guid> 
<description>
<![CDATA[ 
	最近服务器运行生成静态页面的程序，总是报错，错误信息如下：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><b>Warning</b>: &nbsp;file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in <b>/data/www/vhost/5217u/plug-in/404/404.php</b> on line <b>68</b><br /><br/><br /><br/><b>Warning</b>: &nbsp;file_get_contents(http://www.5217u.com/news/detail.php?id=6) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: Invalid argument in <b>/data/www/vhost/5217u/plug-in/404/404.php</b> on line <b>68</b><br /></div></div><br/>经查资料，发现错误是DNS的问题，域名无法解析，上服务器ping www.5217u.com得到错误信息，域名无法解析或者域名不存在，马上去查看resolv.conf，看到配置正确。<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">domain &nbsp;bizeway.com<br/>nameserver &nbsp; &nbsp; &nbsp;202.96.209.5<br/>nameserver &nbsp; &nbsp; &nbsp;202.96.209.133</div></div><br/>但是在服务器上ping www.5217u.com就是不正常解析，在本地ping可以正常解析，经朋友了解，上海电信的域名服务器做了调整，对一部分ip不提供DNS服务了，原来问题出在电信。<br/>后将配置文件修改如下：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">domain &nbsp;bizeway.com<br/>nameserver &nbsp; &nbsp; &nbsp;202.96.209.133<br/>nameserver &nbsp; &nbsp; &nbsp;202.96.209.5</div></div><br/>一切回复正常，希望大家以后再碰到“php_network_getaddresses: getaddrinfo failed: hostname nor servname provided”错误，不要动不动就去看程序哪里错了，换个DNS就好了。<br/><br/><br/>Tags - <a href="tag.php?tag=file_get_contents" rel="tag">file get contents</a> , <a href="tag.php?tag=%E9%94%99%E8%AF%AF" rel="tag">错误</a> , <a href="tag.php?tag=%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88" rel="tag">解决方案</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?116&amp;guid=0#topreply</link>
<title><![CDATA[[评论] 关于file_get_contents() 警告错误的解决方案]]></title> 
<author>dfd &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 30 Apr 2008 09:19:50 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?116&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	<br/><img src="http://www.bizeway.net/template/living/images/viewimage.gif" alt=""/><a href="http://www.bizeway.net/images/emot/thumbnail/pig.gif" target="_blank">点击在新窗口中浏览此图片</a><br/><a href="http://www.bizeway.net/images/emot/thumbnail/pig.gif" target="_blank">http://www.bizeway.net/ima...</a><br/>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?116&amp;guid=1#topreply</link>
<title><![CDATA[[评论] 关于file_get_contents() 警告错误的解决方案]]></title> 
<author>dfd &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 30 Apr 2008 09:20:08 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?116&amp;guid=1#topreply</guid> 
<description>
<![CDATA[ 
	ghg
]]>
</description>
</item>
</channel>
</rss>