note 85485 added to features.http-auth
| From: | fakeraol at hotmail dot com | Date: | Tue, 02 Sep 2008 09:29:39 +0000 |
| Subject: | note 85485 added to features.http-auth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144067@lists.php.net to get a copy of this message | ||
please remove my other posting, it was just a quickfix.
here is a real solution for both auth-digest-example and the contribution of AlexTM, witch does not
work with Internet Explorer:
<?
function http_digest_parse($digest) {
# edit needed parts, as you want
preg_match_all('@(username|nonce|uri|nc|cnonce|qop|response)'.
'=[\'"]?([^\'",]+)@', $digest, $t);
$data = array_combine($t[1], $t[2]);
# all parts found?
return (count($data)==7) ? $data : false;
}
?>
----
Server IP: 212.124.37.9
Probable Submitter: 90.136.82.28
----
Manual Page -- http://www.php.net/manual/en/features.http-auth.php
Edit -- https://master.php.net/note/edit/85485
Del: integrated -- https://master.php.net/note/delete/85485/integrated
Del: useless -- https://master.php.net/note/delete/85485/useless
Del: bad code -- https://master.php.net/note/delete/85485/bad+code
Del: spam -- https://master.php.net/note/delete/85485/spam
Del: non-english -- https://master.php.net/note/delete/85485/non-english
Del: in docs -- https://master.php.net/note/delete/85485/in+docs
Del: other reasons-- https://master.php.net/note/delete/85485
Reject -- https://master.php.net/note/reject/85485
Search -- https://master.php.net/manage/user-notes.php