Apache 함수 apache_response_headers
(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
apache_response_headers — 모든 HTTP 응답 헤더 가져오기
설명
apache_response_headers(): array|false
모든 HTTP 응답 헤더를 가져옵니다. Apache, FastCGI, CLI 및 FPM 웹 서버에서 작동합니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
성공 시 모든 Apache 응답 헤더의 배열, 실패 시 false
.
Examples
예제 #1 apache_response_headers() 예제
<?php
print_r(apache_response_headers());
?>
위의 예는 다음과 유사한 결과를 출력합니다.
Array ( [Accept-Ranges] => bytes [X-Powered-By] => PHP/4.3.8 )
기타
- apache_request_headers() - 모든 HTTP 요청 헤더 가져오기
- headers_sent() - 헤더가 전송되었는지 여부 또는 위치 확인
- headers_list() - 보낸(또는 보낼 준비가 된) 응답 헤더 목록을 반환합니다.