나는이 오류 메시지가 : get_headers failed to open stream: Connection timeout
여기get_headers 연결 시간이 다
코드입니다 :
$file_headers = @get_headers('http://www.example.fr');
print_r(get_headers('http://www.example.fr'));
if (strpos($file_headers[0], "200")) {
echo 'done';
} else {
echo 'error';
}
난 당신이 날 당신은 무엇을 이해하지 못하는 당신에게 –
감사합니다 설명 할 수있는 명확하게 이해하지 못했다? – Prune
this sentence file_headers 스트림이 아직 활성화되어있는 동안 get_headers를 두 번째로 (print 문에서) 호출한다는 것에 유의하십시오. –