PhpWind教程:環境配置打開了allow_url_fopen卻無法采集_PhpWind教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
PHP配置環境中支持file_get_contents、file、fopen打開遠程url時總是報錯,錯誤信息如下:
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/vogue/upload/1.php on line 4
Warning: file_get_contents(http://blog.sina.com.cn/myblog/index_rss.php?uid=1190363061)
[function.file-get-contents]: failed to open stream: Connection refused in /usr/vogue/upload/1.php on line 4
這可能是服務器DNS出問題,造成了路由結果中有部分路由執行超時,最終PHP執行時間超時,導致采集與RSS導
用到這類型的函數娶不到內容而無法使用此項功能。
解決辦法:
檢查一下環境是否開始了allow_url_fopen,在服務器上跟蹤一下路由是否有斷網的節點存在,如存在更換DNS。
查看更多 PhpWind教程 PhpWind模板風格
相關PhpWind教程:
- PhpWind教程:PHPWind forum V7.5 SP1 使用與修復說明
- PhpWind教程:PHPWind Forum V7.5 升級教程
- PHPWind7.3 升級7.3.2 圖文教程
- PhpWind教程:sitemap生成問題
- PhpWind教程:熱榜排行 for 75
- PHPwind 6.3.2升級至PHPwind 7.3.2 圖文教程
- PHPWind 7.0 升級至PHPwind 7.3.2 圖文教程
- PHPWind 7.0 升級到PHPwind v7.3 圖文教程
- PHPWind 6.3.2升級到 PHPwind v7.3 圖文教程
- PHPWind6.3.2升級PHPWind7.0說明教程
- PhpWind教程:PHPWind6.3(6.3rc、6.3) to PHPWind6.3.2升級教程
- PhpWind教程:PHPWind6.x(6.0rc、6.0) to PHPWind6.3.2升級教程
- 相關鏈接:
- 教程說明:
PhpWind教程-PhpWind教程:環境配置打開了allow_url_fopen卻無法采集
。