apache_response_headers
(PHP 4 >= 4.3.0, PHP 5)
apache_response_headers — Obtêm todos os cabeçalhos da resposta HTTP
Descrição
array apache_response_headers
( void
)
Obtém todos os cabeçalhos de resposta.
Valor Retornado
Um array de todos os cabeçalhos de resposta do Apache em sucesso, ou FALSE
em falha.
Exemplos
Example #1 apache_response_headers() example
<?php
print_r(apache_response_headers());
?>
O exemplo acima irá imprimir algo similar à:
Array
(
[Accept-Ranges] => bytes
[X-Powered-By] => PHP/4.3.8
)
Notas
As of PHP 4.3.3 you can use this function with the NSAPI server module in Netscape/iPlanet/SunONE webservers, too.
Veja Também
- apache_request_headers() - Obtem todos os headers HTTP
- headers_sent() - Checks if or where headers have been sent
- headers_list() - Returns a list of response headers sent (or ready to send)