note 18618 added to features.http-auth
| From: | sjeffrey at inquesis dot com | Date: | Tue, 29 Jan 2002 20:00:50 +0000 |
| Subject: | note 18618 added to features.http-auth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25978@lists.php.net to get a copy of this message | ||
To get it to work with IIS try using this code before setting your "$auth = 0" and the
"if (isset($PHP_AUTH_USER) && isset($PHP_AUTH_PW))"
//////////////////////////////////////////
if ($PHP_AUTH_USER == "" && PHP_AUTH_PW == "" &&
ereg("^Basic ", $HTTP_AUTHORIZATION))
{
list($PHP_AUTH_USER, $PHP_AUTH_PW) =
explode(":", base64_decode(substr($HTTP_AUTHORIZATION, 6)));
}
//////////////////////////////////////////
It worked for me on IIS 5 and PHP 4 in ISAPI
--
http://www.php.net/manual/en/features.http-auth.php
http://master.php.net/manage/user-notes.php?action=edit+18618
http://master.php.net/manage/user-notes.php?action=delete+18618
http://master.php.net/manage/user-notes.php?action=reject+18618