note 65801 added to features.http-auth

From: Date: Mon, 08 May 2006 06:47:39 +0000
Subject: note 65801 added to features.http-auth
Groups: php.notes 
Request: Send a blank email to php-notes+get-110825@lists.php.net to get a copy of this message
To implement the Digest authentication mentioned above in PHP < 5.1, try prepending the following: <?php $headers = apache_request_headers(); $_SERVER['PHP_AUTH_DIGEST'] = $headers['Authorization']; ?> or, if you don't like the idea of modifying the global $_SERVER variable directly, just use the first line and then substitute $_SERVER['PHP_AUTH_DIGEST'] in the sample code with $headers['Authorization']. Works great. ---- Server IP: 64.71.164.2 Probable Submitter: 71.129.67.198 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/features.http-auth.php Edit -- http://master.php.net/note/edit/65801 Del: integrated -- http://master.php.net/note/delete/65801/integrated Del: useless -- http://master.php.net/note/delete/65801/useless Del: bad code -- http://master.php.net/note/delete/65801/bad+code Del: spam -- http://master.php.net/note/delete/65801/spam Del: non-english -- http://master.php.net/note/delete/65801/non-english Del: in docs -- http://master.php.net/note/delete/65801/in+docs Del: other reasons-- http://master.php.net/note/delete/65801 Reject -- http://master.php.net/note/reject/65801 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110825) next »