★ wanayoo — archive 1999 http://fr.php.net/manual/it/function.getallheaders.phpNouvelle recherche | Portail wanayoo
PHP Tuesday, March 20, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  

lookup:
Manuale PHPManuale PHP
ApacheApache
 apache_lookup_uriapache_lookup_uri
 apache_noteapache_note
 getallheadersgetallheaders
 virtualvirtual

previousapache_note
virtualnext

Last updated: Sat, 17 Mar 2001
view this page in English | Brazilian Portuguese | Czech | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Spanish | Plain HTML

getallheaders

(PHP 3, PHP 4 )

getallheaders -- Fetch all HTTP request headers

Description

array getallheaders (void)

This function returns an associative array of all the HTTP headers in the current request.

Nota: You can also get at the value of the common CGI variables by reading them from the environment, which works whether or not you are using PHP as an Apache module. Use phpinfo() to see a list of all of the environment variables defined this way.

Esempio 1. getallheaders() Example


$headers = getallheaders();
while (list ($header, $value) = each ($headers)) {
    echo "$header: $value<br>\n";
}
      

This example will display all the request headers for the current request.

Nota: Getallheaders() is currently only supported when PHP runs as an Apache module.

previousapache_note
virtualnext

Last updated: Sat, 17 Mar 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 1998-2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Tue Mar 20 08:31:17 2001 MET