可能重复:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
我正在尝试使用php连接到pop3-server。这是我的代码:
$pop3Server = 'mail.roller.ru';
$pop_conn = fsockopen($pop3Server, 110, $errno, $errstr, 10);
print fgets($pop_conn, 1024);
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/ockonal/public_html/mail_parser.php on line 45
Warning: fsockopen() [function.fsockopen]: unable to connect to mail.roller.ru:110 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution) in /home/ockonal/public_html/mail_parser.php on line 45
Warning: fgets() expects parameter 1 to be resource, boolean given in /home/ockonal/public_html/mail_parser.php on line 46
怎么了?我确定在pop3-server地址。它不会打印任何内容。
答案 0 :(得分:3)
名称解析暂时失败
不够清楚吗?
如果您的服务器遇到名称解析问题,您可以使用62.113.86.215
IP地址。