【发布时间】:2013-06-30 21:01:40
【问题描述】:
我遇到了 PHP file_get_contents 的问题。
$html = file_get_html($csfd_link);
写入错误:
警告:file_get_contents() [function.file-get-contents]: php_network_getaddresses:getaddrinfo 失败:名称或服务没有 在第 76 行的 /home/vo003500/www_root/admin/simple_html_dom.php 中已知
警告:file_get_contents(http://www.example.com/) [function.file-get-contents]:无法打开流: php_network_getaddresses:getaddrinfo 失败:名称或服务没有 在第 76 行的 /home/vo003500/www_root/admin/simple_html_dom.php 中已知
我不知道它是什么。服务器是allow_url_fopen ON
谢谢
编辑: 到现在为止它工作,但过去 2 周没有工作......
【问题讨论】:
-
这意味着它无法将DNS名称转换为IP......
-
变量
$csfd_link中有什么?您可能会发现它不是有效的文件名或 URL。
标签: php