From:                     pasalis at tpg dot com dot au
Operating system:   Windows XP service pack 2
PHP version:          5.2.9
PHP Bug Type:      Documentation problem
Bug description:     HTTP authentication with PHP -
                             Example #2 Digest HTTP Authentication
example

Description:
------------
The sample script does not work correctly on my system.  I think that
the problem lies in the function  http_digest_parse($txt)
Unfortunately I'm new to PHP and have never worked with Regular
Expressions before but as best as I can tell the problem lies in the
line ...

preg_match_all('@(\w+)=(?:([\'"])([^\2]+)\2|([^\s,]+))@', $txt,
$matches, PREG_SET_ORDER);

I would be grateful for any assistance with this issue as the sample
script appears to be quite valuable.

Thanks

Peter de Salis



Reply via email to