超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<apache_request_headersapache_setenv>
Last updated: Fri, 22 Jun 2007

apache_response_headers

(PHP 4 >= 4.3.0, PHP 5)

apache_response_headers --  Fetch all HTTP response headers

Description

array apache_response_headers ( void )

Returns an array of all Apache response headers.

例子 1. apache_response_headers() example

<?php
print_r
(apache_response_headers());
?>

The above example will output something similar to:

Array
(
    [Accept-Ranges] => bytes
    [X-Powered-By] => PHP/4.3.8
)

注: 自 PHP 4.3.3 起也可以在 Netscape/iPlanet/SunONE 服务器的 NSAPI server module 中使用本函数。

See also apache_request_headers(), and headers_sent().




add a note add a note User Contributed Notes
apache_response_headers
There are no user contributed notes for this page.

<apache_request_headersapache_setenv>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22