Re: Documentation missing: $_SERVER['HTTP_AUTHORIZATION']
| From: | Nuno Lopes | Date: | Wed, 08 Dec 2004 15:27:36 +0000 |
| Subject: | Re: Documentation missing: $_SERVER['HTTP_AUTHORIZATION'] | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365394@lists.php.net to get a copy of this message | ||
Hello,
That var is documented.
It is stated in the docs to use something like:
list($user, $pw) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
I've checked the sources, and this behaviour is not true in PHP 5, as PHP5 automatically handles the 'HTTP_AUTHORIZATION' server variable.
I'll update the docs right now. Please report any further problems in http://bugs.php.net
Thanks for your feedback,
Nuno Lopes
----- Original Message -----
Dear Sir/Madam, On the documentation about basic authentication techniques (url: http://www.php.net/manual/en/features.http-auth.php) there is reference to the index "HTTP_AUTHORIZATION" of the $_SERVER super global variable. This is in a sub-note for users of the IIS-ISAPI version of PHP (I'm using v5). HTTP_AUTHORIZATION does not appear to be documented. Can you please explain what this field does? Also, can you confirm that as of php v5, the PHP_AUTH_USER and PHP_AUTH_PW indexes to the $_SERVER super variable do not work under IIS, as is documented in the same page? If this has changed then please tell me. Many Thanks in advance, Andre Sihera.