★ wanayoo — archive 1999 http://fr.php.net/manual/fr/function.getallheaders.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Apache
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
Apache
* apache_lookup_uri
* apache_note
* getallheaders
* virtual
* ascii2ebcdic
* ebcdic2ascii

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: getallheaders
View the source code for this pageSearch the site



Previous page
 apache_note
 Updated
Sun, 11 Feb 2001
virtual 
Next page


getallheaders

(PHP 3, PHP 4 )

getallheaders --  Récupère tous les entêtes des requêtes HTTP.

Description

array getallheaders (void)

getallheaders() renvoie un tableau associatif de tous les entêtes HTTP correspondants à la requête courante.

Note : Note: Vous pouvez récupérer la valeur d'une variable d'une CGI en la lisant à partir des variables d'environnement, ce qui fonctionne aussi bien dans le cas d'une installation en module ou en CGI. Utilisez la fonction phpinfo() pour avoir une liste de toutes les variables d'environnement disponibles.

Exemple 1. Exemple d'utilisation de la fonction getallheaders()


<?php
$headers = getallheaders();
while (list($entete, $valeur) = each($headers)) {
    echo "$entete: $valeur<br>\n";
}
?>
      
Cette exemple est un exemple d'affichage de toutes les entêtes de la requête courante.

Note : Note: La fonction getallheaders() ne fonctionne que si PHP est installé comme module Apache.


 About Notes


Previous page
 apache_note
 Updated
Sun, 11 Feb 2001
virtual 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.