난 항상이 오류fsockopen 오류를 수정하는 방법?
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/xxx/public_html/xxx.php on line 3
Warning: fsockopen() [function.fsockopen]: unable to connect to projecthoneypot.org\statistics.php:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/xxx/public_html/xxx.php on line 3
문제가 무엇 부디을 얻을 내 코드
$fp = fsockopen("projecthoneypot.org/statistics.php", 80, $errno, $errstr, 5);
if ($fp) {
$url = "/";
fputs($fp, "GET $url HTTP/1.1\r\nHost: {projecthoneypot.org/statistics.php}\r\nConnection: close\r\n\r\n");
$resp = '';
while(!feof($fp)) {
$resp .= fgets($fp, 1024);
}
echo "$resp";
}
를 해결하기 위해 도와주세요?
가능한 중복 질문 /statistics.php : [php_network_getaddresses : getaddrinfo는 실패 : 이름 또는 서비스에 알려지지 않은 (http://stackoverflow.com/questions/2661546/php-network-getaddresses -getaddrinfo-failed-name-or-service-not-known) – Wiseguy
Wiseguy에 감사합니다. – Maroman