From 5a32b77fb5e7f12fdc158ec8271db964e9d5feb3 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 21 Jun 2001 13:29:05 +0000 Subject: [PATCH] Document the optional second parameter to header() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@49941 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/http.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/functions/http.xml b/functions/http.xml index 7c6464d2dc..ba91addd04 100644 --- a/functions/http.xml +++ b/functions/http.xml @@ -20,6 +20,7 @@ int header string string + bool replace @@ -28,6 +29,19 @@ header strings. See the HTTP 1.1 Specification for more information on raw http headers. + + The optional replace parameter indicates whether + the header should replace a previous similar header, or add a second header + of the same type. By default it will replace, but if you pass in false as + the second argument you can force multiple headers of the same type. For + example: + + +header('www-authenticate: Negociate'); +header('www-authenticate: NTLM',false); + + + There are two special-case header calls. The first is the "Location" header. Not only does it send this header