note 65801 deleted from features.http-auth by cmb

From: Date: Sun, 06 Oct 2019 08:34:50 +0000
Subject: note 65801 deleted from features.http-auth by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212539@lists.php.net to get a copy of this message
Note Submitter: cyberscribe at php dot net ---- 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.

« previous php.notes (#212539) next »